useEffect.dev
← Back to lessons

Lesson 11Simplify state update logic with reducers

Until now, the only way of updating a state we saw was to use the setter returned by useState. But some situations require updating several states at the same time, using a predefined behavior.