Glossary: React Beyond the Basics
useActionState
A React hook that keeps a form action's result as state and returns [state, formAction, isPending]. The action receives (previousState, formData) and returns the next state.
Glossary: React Beyond the Basics
A React hook that keeps a form action's result as state and returns [state, formAction, isPending]. The action receives (previousState, formData) and returns the next state.