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>
相關文章
相關標籤/搜索