I am using Redux and React for my project. I have some Routes in App.js. I also use the connect function in react-redux in my project. To prevent update blocking issue, I usuall
You can do it in two ways,
Proper Way:
withRouter(connect(mapStateToProps, mapDispatchToAction)(App));
with this, you will able to get withRouter props like history, match etc.. in mapStateToProps.
2nd way:
connect(mapStateToProps, mapDispatchToAction)(withRouter(App));
using this, you won't be able to get the withRouter props