const {browserHistory, Router, Route, Link} = window.ReactRouter;
class App extends React.Component {
render() {
return (
<div>
<Router history={browserHistory}>
<Route path="/" component={HomePage} />
<Route path="about" component={About} />
</Router>
</div>
);
}
}
I can go to http://localhost:8000/ and render the application. And I can click on the navbar and go to the about page. But if I type http://localhost:8000/about into the address bar I get an Error response - error code 404. I am not sure what the problem is.
@timdorr you've linked to 404
It was moved: https://github.com/reactjs/react-router/blob/master/docs/guides/Histories.md#configuring-your-server
Nice! Thanks!
@timdorr please provide link, still linked to 404, thanks.
Most helpful comment
@timdorr you've linked to 404