T
T
TechnicaL2020-06-25 17:36:49
React
TechnicaL, 2020-06-25 17:36:49

Can someone explain what is the difference between React-router-dom and React-router-redux? Can they be used at the same time?

Can someone explain what is the difference between React-router-dom and React-router-redux?
Can they be used at the same time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-06-26
@slide13

Connected -react-router is now used instead of react-router-redux . The difference is that the react-router-dom package provides routing (in short, it renders different components depending on the current path), while connected-react-router exposes the router state to redux, allowing you to change the path using asynchronous actions. Those. it follows that connected-react-router is only used in conjunction with react-router-dom, but is only needed in some cases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question