Manages form state, pending status, and action results
Unwrap promises directly in render without useEffect
Server time: 12:21:59 AM
UI updates instantly while the server catches up
| Hook | Purpose | Replaces |
|---|---|---|
| useActionState | Form state + pending + result | useState + useTransition combo |
| useOptimistic | Instant UI updates before server confirms | Manual optimistic state patterns |
| use() | Read promises/context in render | useEffect + useState for data |
| useFormStatus | Form pending state in nested components | Prop drilling isPending |