react-relative-router:react-router的包装器,使在嵌套路由中导航更容易

时间:2024-05-14 10:31:26
【文件属性】:

文件名称:react-relative-router:react-router的包装器,使在嵌套路由中导航更容易

文件大小:332KB

文件格式:ZIP

更新时间:2024-05-14 10:31:26

TypeScript

React相对路由器 react-router的包装器,用于在有界上下文中启用相对路由 安装 npm install @unibuddy/react-relative-router yarn add @unibuddy/react-relative-router 出口产品 import { useRelativeRouter , RelativeRoute , RelativeSwitch , RelativeLink , RelativeNavLink , RelativeRouter , RelativeRedirect , } from '@unibuddy/react-relative-router' ; 使用范例 基本例子 import { BrowserRouter , Route } from 'react-router-dom' ; impo


【文件预览】:
react-relative-router-master
----.gitignore(41B)
----package.json(2KB)
----src()
--------useRelativeRouter()
--------RelativeNavLink()
--------getToProp.ts(329B)
--------RelativeRoute()
--------getPathProp.ts(100B)
--------RelativeRedirect()
--------RelativeLink()
--------index.tsx(585B)
--------RelativeSwitch()
--------getToProp.test.js(506B)
--------RelativeRouter()
----CONTRIBUTING.md(6KB)
----LICENSE(1KB)
----CHANGELOG.md(559B)
----tsconfig.json(1KB)
----.github()
--------workflows()
----README.md(3KB)
----example()
--------package.json(747B)
--------tsconfig.json(438B)
--------index.html(342B)
--------.npmignore(24B)
--------index.tsx(1KB)
--------yarn.lock(231KB)
----.storybook()
--------main.js(313B)
--------preview.js(242B)
----.babelrc.js(131B)
----yarn.lock(589KB)

网友评论