没有合适的资源?快使用搜索试试~ 我知道了~
use-route-matching
共29个文件
js:7个
jsx:6个
json:4个
需积分: 8 0 下载量 5 浏览量
2021-05-10
03:29:50
上传
评论
收藏 17KB ZIP 举报
温馨提示
使用路由匹配 特征 检索具有与应用程序路由相同的结构的对象,并包含有关当前位置的匹配信息。 用法 要点:必须在路由器的子组件中使用它。 例如,如果您具有以下路由对象: const routes = { list: "/products", product: { root: "/product/:id", info: "/product/:id/info", gallery: "/product/:id/gallery", details: "/product/:id/details", }, contact: "/contact", }; 您可以在产品信息组件(即/ product / 1955 / info )中使用该钩子: const routeMatching = useRouteMatching ( routes ) ; 您得
资源推荐
资源详情
资源评论
收起资源包目录
use-route-matching-master.zip (29个子文件)
use-route-matching-master
.gitignore 258B
.babelrc 2KB
package.json 4KB
src
index.ts 86B
use-route-matching.hook.ts 737B
index.d.ts 333B
tsconfig.json 412B
LICENSE.txt 0B
examples
simple-react-app
.babelrc 62B
package.json 858B
src
routes.js 220B
index.jsx 169B
app-layout.jsx 829B
base.css 801B
index.html 322B
app-router.jsx 803B
pages
products.component.jsx 745B
contact.component.jsx 212B
mock-data.js 221B
product.component.jsx 638B
webpack.config.js 866B
.eslintrc.js 1KB
README.md 3KB
config
webpack
helpers.js 1KB
webpack.prod.js 1KB
IgnoreNotFoundExportPlugin.js 2KB
jest.json 284B
.editorconfig 161B
.prettierrc 76B
共 29 条
- 1
资源评论
yueyhangcheuk
- 粉丝: 28
- 资源: 4701
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功