React Router Did Not Match Any Route
i trying to make some basic examples with react-router but it just doesn't works. The code and the idea are simples: import React, { Component } from 'react'; import { Router, Rout
Solution 1:
I think I got your mistake, your route doesn't actually specify a path.you need to put slash for every path like this:-
render() {
return (
<Routerhistory={browserHistory }><Routepath='/'component={App } ><IndexRoutecomponent={Repos } /><Routepath='/about'component={About } /></Route></Router>
);
}
Post a Comment for "React Router Did Not Match Any Route"