Skip to content
masterclass Buddy

React 19+ · Function

useFormState

useFormState connects a form action to state. It returns the latest action result and a new action to use on the form.

Last updated

Syntax

const [state, formAction] = useFormState(action, initialState, permalink?);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • useFormStatus
  • react-dom
  • Server Actions
  • formAction

Source: useFormState – React. Checked 2026-11-03.