FormData
A browser object holding the name and value of every field in a submitted form.
In more detail
Read fields with data.get("name"). Only inputs with a name attribute are included.
Example
When a React form action runs, React passes it a FormData object.Related terms
- useActionState — The React hook that wraps an Action and returns its latest result, a function to trigger it, and an isPending flag.
- Action (React) — In React 19, an async function run inside a transition, typically to submit data, with pending state, errors and optimistic updates handled by React.
Taught in
- useActionState: Async Action Handlers And Pending States — React 19 & Modern Component Architecture