Redux Reducer

The last primary actor in Redux is the Reducer. In terms of our money withdrawal example, it is equivalent to the Cashier i. e. it interprets our actions and manipulates the app based on them.

Alright, take a step back.

Remember that in the story above, you couldn’t just go straight into the bank vault to retrieve your money from the bank. No. You had to see the Cashier first.

Well, you had an action in mind, but you had to convey that action to someone, the Cashier, which in turn communicated (in whatever way they did) with the vault that holds all of the bank’s money.

Get hands-on with 1200+ tech skills courses.