react-router vs react-router-dom, when to use one or the other?

Both have Route, Link, etc. When to use one or the other? I’m really confused on where to use each one. Server side? Client side?

https://reacttraining.com/react-router/

In some examples you need to pass the history, in others not. What to do?

<Router history={browserHistory}>

vs

<Router>

It’s really confusing on when to use one or the other, any help appreciated.

5 Answers
5

Leave a Comment