React · Middle · Question 69 of 75
What does <form action={saveAction}> do in React 19?
- ✓Correct answer: Calls the function with
FormDataon submit, handles pending state and resets uncontrolled fields after success - 2Submits the form to a URL named
saveAction - 3Only works with Server Components
Explanation
Actions can be client functions or Server Functions. Combined with useActionState and useOptimistic they cover most form flows without manual onSubmit handling.