Forms and Controlled Inputs
A controlled input sets value={state} and updates on onChange. That keeps React as the source of truth for form data.
- Prevent default on submit.
- Validate before calling your API.
- Disable the button while saving.
After you read this chapter, use Write (when available) and Quiz on this page to lock it in.