Data in a Redux store is changed by dispatching actions to the reducers, which then return a new value for the store. The second argument to
connect allows actions to be dispatched to the store.
Redux will take a dispatched action and run it through all reducers that have been set up with combineReducers. It is then each reducers responsibility to change the store according to that action.
We'll dispatch an add todo action, which will add a new todo items to the Redux store
Summary of Content:
- Dispatch an add todo action to the Redux store
- Learn how an action flows through all the reducers
- Modify the todos reducer to show the dispatched action