ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

React-router-dom + react-router-redux@5.0.0?


#1

I’ve been trying to upgrade my React-On-Rails app to use the latest version of react-router 4 (react-router-dom). I’ve got a semi-working version, but the problem is I am unable to get the latest version of react-router-redux to work when using the ConnectedRouter component from the react-router-redux@5.x.x library. Has anyone got a working example of this? I know this stuff is fairly bleeding edge.


#2

Why do you need react-router-redux? Can you do without it? It seems that the new react-router doesn’t need a redux connection.


#3

For right now I’m not using it. In my existing setup I use it to see the route history in the redux tools. Additionally you have the ability to dispatch the navigation actions with redux.