RouteMatch
react-router

RouteMatch interface

Properties

params

Type: Params<ParamKey>

The names and values of dynamic parameters in the URL.

pathname

Type: string

The portion of the URL pathname that was matched.

pathnameBase

Type: string

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

route

Type: RouteObjectType

The route object that was used to match.

Docs and examples CC 4.0