1.2.0 • Published 4 years ago
@hackkun/react-router v1.2.0
@hackkun/react-router
react-router 封装
如何使用
- 建议使用 npx create-app create myapp 之间创建模版应用
import { renderRoutes, history, RouteOption, Link, NavLink } from '@hackkun/react-router'
renderRoutes 根据路由配置渲染组件
history 路由跳转操作
RouteOption 路由配置接口