Course · Section 17: Modern JavaScript Development: Modules, Tooling, and Functional · Lecture 294: Declarative and Functional JavaScript Principles
Implement `formReducer(state, action)` where a `setField` action carries `field` and `value`, updating that field of the form object immutably.
+ 1 hidden test run on Submit.
A form reducer updates one field per action by returning a new object with that computed key replaced, the pattern behind controlled multi-field forms.
Run your code to see results.