DataRouteMatch
react-router

DataRouteMatch interface

Properties

params

Type: Params<string>

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: DataRouteObject

The route object that was used to match.

Docs and examples CC 4.0