Handling User Input & Forms with Form Actions
Learning Objectives
By the end of this chapter, you will be able to do the following:
- Describe the purpose of React form actions
- Build and use custom form actions to handle form submissions
- Use the
useActionState()Hook to manage form-dependent state - Render a pending UI during submission via the
useFormStatus()Hook - Perform optimistic state updates with the
useOptimistic()Hook - Implement both synchronous and asynchronous actions