Current section: Advanced State Management 36 exercises
Problem

Previous State

Loading exercise

Transcript

00:00 OK, so we're going to continue our useReducer exploration by updating the setCount to actually be a changeCount function and then pass just the change we want. This will mean that we need to know what the current state is, and then we'll get the change that we want to make.

00:18 We return the result. So changing our reducer, changing the API a little bit, let's go.