Open jcubic opened 6 years ago
You can write instead of IndexRoute the following:
<Route path="/" component={App} >
@anklaa That will give a warning that the child routes are not going to be rendered.
'react-router' does not contain an export named 'Link'. So what's instead of Link?
@WilliamShoww I believe Link was moved here: import {Link} from 'react-router-dom';
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.
please try to user Dom. import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router-dom';
I'm using CreateReactApp and when I use:
I've got error:
Does the api changed and tutorial is out of date?