react-router-config
beichen3997
每一天都是一个进步
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
react-router4基于react-router-config的路由拆分与按需加载
const routes = [ { component: Root, routes: [ { path: "/", exact: true, component: Home }, { path: "/child/:id", component: Child, ...原创 2019-04-11 10:36:50 · 913 阅读 · 0 评论 -
利用react-router4的react-router-config做路由鉴权
一、react-router-config 是一个帮助我们配置静态路由的小助手。 其源码就是一个高阶函数 利用一个map函数生成静态路由 import React from "react"; import Switch from "react-router/Switch"; import Route from "react-router/Route"; const renderRoutes =...转载 2019-04-11 10:45:32 · 809 阅读 · 1 评论
分享