TRADEOFF BATTLE
useState vs useReducer for growing React component state
A React settings panel started simple, then gained validation, loading, error, reset, and success flows. Would you keep useState or move to useReducer?
The prompt
You are building a React profile settings panel. It began with a couple of fields and one save button, but now the component handles editable form values, client-side validation, a saving spinner, a server error message, a success banner, and a reset action that should bring the draft back to the last saved values. In the interview, the panel asks whether you would keep this component on several useState hooks or move the state transitions into useReducer.
Pick the direction you would defend
You are not looking for the universal winner. You are picking the strongest answer for this prompt.
Commit to a direction
Pick the option you would defend, then reveal the stronger interview framing for this prompt.