Actions Dispatched. Does this Thing Work?
Explore how Redux actions are sent to reducers and logged during state updates. Understand the Redux init action and prepare to use reducers effectively for managing app state.
We'll cover the following...
We'll cover the following...
Firstly, here’s a short quiz question.
Technical Quiz
1.
Upon clicking a button and consequently dispatching an action, what happens next within Redux? i.e which
Redux actors come into play?
A.
Store
B.
Reducer
C.
State Object
1 / 1
So the answer is the reducer. You can find the explanation up above, but to prove this further, I’ll log whatever action comes into the reducer.
reducers/index.js:
The reducer then returns the new state of the app. In ...