react-router 中 path 和 url 的关系

2020-09-16  本文已影响0人  xcyzjs
// jsx
let match = useRouteMatch()
console.log(match)
    // isExact: true
    // params: {topicId: "6"}
    // path: "/topics/:topicId"
    // url: "/topics/6"
上一篇 下一篇

猜你喜欢

热点阅读