The default react-router is used as such:
import * as React from \'react\';
import { Router, Route, hashHistory } from \'react-router\';
const routing = (
&
Try this one
declare module 'react-router' {
interface RouterProps {
environment?: any
render?: any
}
}
it's working with the latest react-router definitions.
<Router history={hashHistory} render={applyRouterMiddleware(useRelay)} environment={Relay.Store}>
<Route path="/login" component={Login}/>
</Router>
Looks like login (component={Login}) is not Imported.Hence, It always return an error.