You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
'react-router' does not contain an export named 'IndexRoute' #331
There is no browserHistory export in v4. If you're using v2/3, then you just need to install the correct version (npm install react-router@3). If you are using v4, you should read this section of the migration guide.
Activity
HansAndreManfredson commentedon Jan 11, 2018
You can write instead of IndexRoute the following:
<Route path="/" component={App} >PhillipMwaniki commentedon Jan 15, 2018
@anklaa That will give a warning that the child routes are not going to be rendered.
WilliamShoww commentedon Jun 28, 2018
'react-router' does not contain an export named 'Link'.
So what's instead of Link?
MariuszWojcikDeveloper commentedon Jul 25, 2018
@WilliamShoww I believe Link was moved here:
import {Link} from 'react-router-dom';
Salar-Suliman commentedon Aug 8, 2018
There is no browserHistory export in v4. If you're using v2/3, then you just need to install the correct version (npm install react-router@3). If you are using v4, you should read this section of the migration guide.
skjaiswal1991 commentedon Jul 12, 2019
please try to user Dom.
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router-dom';