Making the Reducer Count

With the reducer receiving the action, we must specify that we want it to update the app's state based on the particular action.

Up until now, the reducer we’ve worked with hasn’t done anything particularly smart. It’s like a Cashier who is new to the job and does nothing with our WITHDRAW_MONEY intent.

What exactly do we expect the reducer to do?

For now, here’s the initialState we passed into createStore when the STORE was created.

Get hands-on with 1200+ tech skills courses.