You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
When I run a react-router demo in browser,it reports an error like this: Uncaught TypeError: Cannot read property 'getCurrentLocation' of undefined
what caused this proble? the version? my codes are like this: main.js: import React from "react"; import ReactDOM from "react- import {Router,Route,hashHistory,IndexRoute} from "react-router"; import App from "./Components/App"; ReactDOM.render((<Router hsitory={hashHistory}> <IndexRoute component={App} /> <Route path="/" component={App} /> </Router> ),document.querySelector("#app")); ./Components/App/index.jsx const APP = React.createClass({ render(){ return( <div> <button>首页</button> {this.props.children} </div> ); } }); export default APP;
Thank you very much!
The text was updated successfully, but these errors were encountered:
When I run a react-router demo in browser,it reports an error like this:
Uncaught TypeError: Cannot read property 'getCurrentLocation' of undefined
what caused this proble? the version? my codes are like this:
main.js:
import React from "react"; import ReactDOM from "react- import {Router,Route,hashHistory,IndexRoute} from "react-router"; import App from "./Components/App"; ReactDOM.render((<Router hsitory={hashHistory}> <IndexRoute component={App} /> <Route path="/" component={App} /> </Router> ),document.querySelector("#app"));
./Components/App/index.jsx
const APP = React.createClass({ render(){ return( <div> <button>首页</button> {this.props.children} </div> ); } }); export default APP;
Thank you very much!
The text was updated successfully, but these errors were encountered: