React Router API Reference
    Preparing search index...

    Interface RouteMatch<ParamKey, RouteObjectType>

    interface RouteMatch<
        ParamKey extends string = string,
        RouteObjectType extends RouteObject = RouteObject,
    > {
        params: Params<ParamKey>;
        pathname: string;
        pathnameBase: string;
        route: RouteObjectType;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    params: Params<ParamKey>

    The names and values of dynamic parameters in the URL.

    pathname: string

    The portion of the URL pathname that was matched.

    pathnameBase: string

    The portion of the URL pathname that was matched before child routes.

    The route object that was used to match.