文件名称:react-router-strong:react-router的增强功能,路由配置,异步路由拦截器
文件大小:19KB
文件格式:ZIP
更新时间:2024-05-29 06:45:18
JavaScript
React路由器强 安装 npm install react-router-strong --save import React from 'react' import RouterStrong from 'react-router-strong' import Home from '../views/Home' import Layout from './views/Layout' import Car from './views/Car' import BWM from './views/BWM' const config = [ { path : "/app" , component : Layout , redirect : '/app/home' , children : [ {
【文件预览】:
react-router-strong-master
----.gitignore(159B)
----.babelrc(174B)
----package.json(1KB)
----package-lock.json(64KB)
----src()
--------AsyncRoute.js(2KB)
--------index.js(4KB)
--------utils.js(5KB)
--------key.js(251B)
----index.js(166B)
----rollup.config.js(945B)
----readme.md(1KB)
----.npmignore(75B)