react-route ^4.1.2报错?
./src/components/root.js
Line 59: 'hashHistory' is not defined no-undef
Line 61: 'IndexRoute' is not defined react/jsx-no-undef
import { Router, IndexRoute, Link, Route, browserHistory, hashHistory} from 'react-router';
let Root =React.createClass({
render(){
return(
<Router history={hashHistory}>
<Route path="/" component={App}>
<IndexRoute component={Player}/>
<Route path="/list" component={MusicList} />
</Route>
</Router>
)
}
});