Summary: Know why, how, and when it’s time to refactor a component to use a useReducer hook instead of several useState hooks. The Scenario I came across a scenario recently where a very bright coworker of mine commented, “Hey, do these states depend on each other? I think maybe it’s time to…