The Store and Reducer Relationship
The role of the reducer is to help us access the store.
We'll cover the following...
Back to the bank analogy.
When you go to the bank to make a withdrawal, you meet with the Cashier. After you make your WITHDRAW_MONEY intent/action known to the Cashier, they do NOT just hand you the requested money.
No.
The Cashier first confirms that you have enough money in your account to perform the withdrawal transaction you seek.
Access this course and 1400+ top-rated courses and projects.