Glossary: Next.js Beyond the Basics
useActionState
A React hook that connects a form to an action and returns [state, formAction, isPending]. The action gets the previous state and the form data and returns the new state.
Glossary: Next.js Beyond the Basics
A React hook that connects a form to an action and returns [state, formAction, isPending]. The action gets the previous state and the form data and returns the new state.