useMatch
declare function useMatch< ParamKey extends ParamParseKey<Path>, Path extends string >( pattern: PathPattern<Path> | Path ): PathMatch<ParamKey> | null;
傳回指定路徑(相對於目前位置)上路由的比對資料。
更多資訊請參閱 matchPath。
matchPath