Glossary: Next.js Beyond the Basics
FormState
A TypeScript type describing what a form action returns: an optional `error`, per-field `fieldErrors` and an optional `message`. A form using `useActionState` reads these values to show validation errors or a success message.