Transcript

Instructor: 0:00 All right. Let's get started. UseReducer, simple counter, so this is a pretty contrived example just to show you the very basics of useReducer. You can read through the background to get an example of what the API looks like and the things that you can do with it.

0:15 One thing, especially for you Redux fans out there, I want you to put your Redux experience to the side and do exactly what the emoji are telling you to do.

0:26 Eventually, we'll get to that standard switch statement reducer thing that you're used to doing with Redux. I want to show you that that is just a convention and it has nothing to do with the actual API.

0:37 We're going to learn about the basics of the API in this exercise. All this is is a button that every time you click on it, it increments. The current version is working using useState and your job is just to switch it over to useReducer.

0:51 There are a bunch of extra credits, each of them relatively small for you to experiment with different ways to use this API. Have fun with this and we'll see you on the other side of the exercise.