import React from "react";
import {browserHistory, IndexRoute,
Redirect, Route, Router} from "react-router";
//引入app
import app from
"../pages/app.jsx";
//引入home页面
import pageHome from
"../pages/home.jsx";
//webpack会打包成chunk包在进入album时去加载
const pageAlbum = (location, cb) => {
require.ensure([], require => {
cb(null, require('../pages/album.jsx').default)
},'pageAlbum')
};
更多资料每日分享加群 120342833 验证回答 ZZ
...
//定义路由首先加载app
//然后根据正则去匹配path来实现路由页面
const RouteConfig = (
);
export default RouteConfig;