If, considering the concerns in the previous section, you decide you want to deeply integrate react-router with Redux: That is what we are going to do in this section!
Using react-router-redux
Installing react-router-redux
As always, we first need to install the libraries via npm:
npm install --save react-router-redux@next
npm install --save history
Using the routerMiddleware
Next, we need to make react-router use the Redux store. This is done by applying the routerMiddleware provided by react-router-redux when creating the Redux store. Perform the following steps:
- Edit...