react-router:轻巧的Rea​​ct路由器

时间:2024-04-16 06:28:06
【文件属性】:

文件名称:react-router:轻巧的Rea​​ct路由器

文件大小:7KB

文件格式:ZIP

更新时间:2024-04-16 06:28:06

router react-router history-api react-hooks JavaScript

轻巧的Rea​​ct路由器 用法 // App.jsx import { useRoute , A } from '@axtk/react-router' ; // `A` is a link component enabling navigation without page reloading. // (To comply with the History API, it won't require page reloads as // long as the `href` prop value is a same-origin location. With // non-same-origin URLs, `A` will act as a plain HTML link.) const AppRoute = { HOME : '/' , INTRO : '/intr


【文件预览】:
react-router-master
----src()
--------RouteContext.js(117B)
--------useRoute.js(641B)
--------useRouteLinks.js(526B)
--------Router.js(911B)
--------A.js(602B)
----external.react.js(31B)
----README.md(6KB)
----.gitignore(22B)
----index.js(290B)
----package-lock.json(5KB)
----package.json(766B)

网友评论