react-router初

1, 安装路由插件   命令:npm install  --save-dev react-router 2.引入: 代码:import {Router,Route,hashHistory,Link} from "react-router"; 3.配置 <Router history={hashHistory}> <Route path="/" component={Index}></Route>
相关文章
相关标签/搜索