Saved Oct 21 · react.dev
React useActionState
A hook for state that changes as the result of a form action. You pass it an action and an initial state, and it gives back the current state, a wrapped action, and a pending flag.
Reach for it when the form itself owns the result, such as a sign up error or a saved message. Keep plain useState for values the user is still typing.
- react
- forms
- react 19