Preparing search index...
The search index is not available
React Router API Reference
React Router API Reference
react-router
matchPath
Function matchPath
match
Path
<
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
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
React Router API Reference
Loading...
Performs pattern matching on a URL pathname and returns information about the match.