Managing State With useReducer
When state logic grows, move it into a reducer: a pure function that takes the current state and an action and returns the new state. Learn useReducer, dispatch and action objects, and when to choose it over useState.
Lesson 19 of 28