In this lesson, we’ll install React Router as a project dependency and add links that will update the url via pushState to avoid reloading our page on changes.
It looks like this particular video might need an update. Since React Router V4 We need to import import { BrowserRouter as Router } from 'react-router-dom'
directly into index.js
and wrap the entire app in the <Router>
component. Like this:
import { BrowserRouter as Router } from 'react-router-dom'
ReactDOM.render(
<Router>
<Provider store={store}>
<App />
</Provider>
</Router>,
document.getElementById('root')
)
See more on this here