推荐一个像vue一样使用router的库react-router-pro

#1

废话不多说,上代码

import {RouterPro} from "react-router-pro"
import Index from "./page/home"

let data = [{
    name: "主页",
    path: "/",
    component: Index,
    icon: "HomeOutlined",
}];

 <RouterPro data={data}/>

不入侵,随插随用,超轻量
库地址:地址

#2

现在论坛这么没人气了吗:drooling_face: