react-router-nav
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

react-router-nav

react-router具名路由

对应react-router版本

^5.2.0

应用场景

根据路由中的name来找到相应的path并进行操作

API

详细入参请查阅index.d.ts

  • createPath (创建路径)
  • createRouteNav (创建路由导航)
  • useRouterNav (基于hooks使用路由导航)
  • addHistory (添加一个history)
  • removeHistory (移除一个histroy)
  • useInjectHistory (使用hooks快速注入一个路由栈)

额外属性

  • routeStack (当前路由栈中所有history的集合)
  • RouteList: distributionData.RouteList,
  • RoutePathMaps: distributionData.RoutePathMaps,
  • RouteNameConfig: distributionData.RouteNameConfig

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.41latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.41
2.0.31
2.0.21
2.0.11
2.0.01
1.3.01
1.2.91
1.2.81
1.2.71
1.2.61
1.2.51
1.2.41
1.2.31
1.2.21
1.2.11
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i react-router-nav

Weekly Downloads

15

Version

2.0.4

License

ISC

Unpacked Size

8.88 kB

Total Files

5

Last publish

Collaborators

  • breeze_yu