Hex Core JS
    Preparing search index...

    Function matchPath

    • Matches the given pathname against the give props. Works like useRouteMatch but accepts pathname as a parameter instead of taking from the history context.

      Parameters

      • pathname: string

        The path to match the props against.

      • props: string | string[] | RouteProps<string, Record<string, string | undefined>>

        Options decribing a path.

      Returns match<{}> | null