• 正在准备搜索索引...
  • 搜索索引不可用
React Router API 参考
  • React Router API 参考
  • react-router
  • matchPath

函数 matchPath

  • matchPath<ParamKey, Path>(pattern, pathname): PathMatch<ParamKey> | null
  • 对 URL 路径名执行模式匹配,并返回匹配信息。

    类型参数

    • ParamKey extends string
    • Path extends string

    参数

    • pattern: Path | PathPattern<Path>
    • pathname: string

    返回 PathMatch<ParamKey> | null

    • 定义在 packages/react-router/lib/router/utils.ts:965

设置

成员可见性
React Router API 参考
  • 加载中...

使用 TypeDoc 生成