Action (React)

In React 19, an async function run inside a transition, typically to submit data, with pending state, errors and optimistic updates handled by React.

In more detail

You can pass an Action to startTransition, to useActionState, or directly to the action prop of a form or button. While it runs, isPending is true; if it throws, the nearest error boundary or your returned error state handles it.

Related terms

Taught in

References