Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useMatch

Returns a PathMatch object if the given pattern matches the current URL. This is useful for components that need to know "active" state, e.g. .

function useMatch<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path): PathMatch<ParamKey> | null;
§
useMatch<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path): PathMatch<ParamKey> | null
[src]

§Type Parameters

§
ParamKey extends ParamParseKey<Path>
[src]
§
Path extends string
[src]

§Parameters

§Return Type

§
PathMatch<ParamKey> | null
[src]