• Preparing search index...
  • The search index is not available
React Router API Reference
  • React Router API Reference
  • react-router
  • matchPath

Function matchPath

  • matchPath<ParamKey, Path>(pattern, pathname): PathMatch<ParamKey> | null
  • Performs pattern matching on a URL pathname and returns information about the match.

    Type Parameters

    • ParamKey extends string
    • Path extends string

    Parameters

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

    Returns PathMatch<ParamKey> | null

    • Defined in packages/react-router/lib/router/utils.ts:965

Settings

Member Visibility
React Router API Reference
  • Loading...

Generated using TypeDoc