Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `handleChange(state, field, value)` returning new form state with `field` set to `value`.
+ 1 hidden test run on Submit.
Returning { ...state, [field]: value } updates one controlled field while preserving the others, the canonical onChange handler.
Run your code to see results.