react-router-manage
v2.0.2
Published
react-router-manage extends react-router(v6), it Including authentication, configuration, addition, deletion and modification
Downloads
100
Readme
react-router-manage
Features
react-router-manage
is based on react-router
v6
. It can realize the function of authentication, guard, add, delete and check of route by configuration.
Because react-router
v5
upgrades to v6
have a high cost, react-router-manage
provides the API from the original v5
section for compatible projects that use v5
for smooth upgrades to v6
- 🛠 [
config router
] - Centralized router configuration, fast and convenient management. - + [
addRoutes
] - Dynamically addroutes
: you can use hookuseAddRoutes
to add routes and automatically refresh the view. - ➖ [
removeRoutes
] - Dynamically delete routes: you can use hookuseRemoveRoutes
to delete routes and automatically refresh the view. - 🖇 [
updateRoutes
] - Dynamically modify routes: you can use hookuseUpdateRoutes
to modify routes. - 🔐 [permission] - Permission control: configure the code of the route and automatically manage the permission of the route
- 👨✈️ [route guard] - Provide hooks for route entry config
beforeEnter
andbeforeEachMount
, route exit hookuseBeforeLeave
- 🌲 [navigation] - level navigation: supports level navigation, and automatically generates navigation bars for parent-child routes, such as breadcrumbs and menu navigation
About
react-router-manage
is used in many projects within Netease BizEase. In order to give back to the community, it has decided to open source, and is willing to build a useful react router management library with friends in the community