Skip to main content

Modern React 19+ visual mental model

React 19+ adds primitives that make asynchronous mutations and resources easier to express without turning every workflow into manual loading/error state.

Modern React mutation flowUser intent becomes an Action, while React coordinates pending and optimistic UI around it.
IntentUser submits or starts an Action

A form submission or transition starts work that may cross an async boundary.

CoordinationReact tracks pending work

Transitions and Action-aware APIs keep urgent interaction separate from async completion.

Optimistic UIShow the expected result now

useOptimistic can project a temporary state while the real mutation is still pending.

Committed resultRender authoritative state

Success, returned Action state, navigation, or an error boundary determines the final UI.

Which React 19+ primitive owns what?​

Modern React 19+ responsibility map
MutationActions / transitions

Model async work that should participate in React's pending transition semantics.

Result stateuseActionState

Keep structured results such as validation messages and pending status around an Action.

Nested form UIuseFormStatus

Let descendants read the status of the parent form without lifting submission state manually.

PredictionuseOptimistic

Show a temporary expected result while the authoritative mutation is unresolved.

Resourcesuse

Read a supported resource such as a Promise or Context while letting React coordinate suspension.

VisibilityActivity

Preserve UI state while changing visibility and effect behaviour for hidden work.

Traditional mutation vs Action-oriented mutation​

Two mutation models
ManualTraditional event flow

Event handler → set pending → await request → set error/success → reset pending.

Action-awareModern React flow

Action → React coordinates transition/pending state → result is rendered through dedicated primitives.

Optimistic UI is a projection, not truth​

Optimistic state lifecycle
1Authoritative state
2Optimistic projection
3Mutation result
4Reconcile

Where modern React stops​

What problem are you solving?
One async UI mutationAction / transition primitives may fit.
Form result and validation stateConsider useActionState and useFormStatus.
Temporary optimistic feedbackConsider useOptimistic.
Shared server cache, invalidation, retries, dedupeUse framework/server-state infrastructure rather than treating Actions as a cache.
Long-lived client application stateUse the client-state ownership tools from sections 14–16F.

Keep this mental model​

Modern React 19+ in one picture
React still renders from state and props

The fundamentals do not disappear.

New primitives improve async coordination

They express pending work, resources, form results, and optimistic projections more directly.

Architecture still owns truth

Server state, client state, URLs, forms, and external systems still need clear ownership boundaries.

Continue with Actions and Async Transitions for the detailed APIs and production patterns.