I saw a lot of solutions, but nothing helped me. I am still getting error `Warning: [react-router] Location "/" did not match any routesin my index.js-
import { Router, Route, Redirect, browserHistory } from 'react-router';
ReactDOM.render(<Router history={browserHistory} >{routes}</Router>, document.getElementById("app"));
module.exports = (
<Route path="/" handler={App}>
<Redirect from="/" to="/graph"/>
<Route path="/graph" handler={Pages["Graph"]}/>
</Route>
);
then in App.js
return (
<div className="App-Master">
<Header data={this.state.data.header} />
<Navigation data={this.state.data.menu} switchLanguage={this.switchLanguage.bind(this)} />
<div className="content">
{this.props.children}
</div>
</div>
);
I have no links yet. This error i am getting during first loading page..
"dependencies": {
"react": "^15.2.1",
"react-dom": "^15.2.1",
"react-router": "^2.6.0"
},
It looks like you're just getting started with React Router. Take a look at our tutorial and the guides on the site. The issue tracker is intended to track bugs and feature requests – it's not an ideal resource for learning how to use React Router.