React-router: 404 Error?

Created on 10 Feb 2016  路  6Comments  路  Source: ReactTraining/react-router

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.

Most helpful comment

@timdorr you've linked to 404

All 6 comments

@timdorr you've linked to 404

Nice! Thanks!

@timdorr please provide link, still linked to 404, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexyaseen picture alexyaseen  路  3Comments

winkler1 picture winkler1  路  3Comments

jzimmek picture jzimmek  路  3Comments

andrewpillar picture andrewpillar  路  3Comments

nicolashery picture nicolashery  路  3Comments