react-router-pro像vue-router一样用react-router

废话不多说,上代码

import {RouterPro} from “react-router-pro”

import Index from “./page/home”let data = [{

name: “主页”,

path: “/”,

component: Index,

icon: “HomeOutlined”,

}];

不入侵,随插随用,超轻量

库地址:地址

你可能感兴趣的:(react-router-pro像vue-router一样用react-router)