v6.4.0-pre.2
useMatch

useMatch

Type declaration
declare function useMatch<ParamKey extends string = string>(
  pattern: PathPattern | string
): PathMatch<ParamKey> | null;

Returns match data about a route at the given path relative to the current location.

See matchPath for more information.

Docs and examples CC 4.0