1.引入路由
import {Router, Route, hashHistory} from 'react-router';
2.引入组件
//引入加载页
import Loading from './loading';
//场地资源首页
import Index from './Component/Index.js';
3.使用
<Router history={hashHistory}>
<Route path="/" component={Loading}/>
<Route path="/mainPage" component={Index }/>
</Router>