--- title: useMatch --- # `useMatch`
Type declaration ```tsx declare function useMatch< ParamKey extends ParamParseKey, Path extends string >( pattern: PathPattern | Path ): PathMatch | null; ```
Returns match data about a route at the given path relative to the current location. See [`matchPath`][matchpath] for more information. [matchpath]: ../utils/match-path