5 lines
162 B
TypeScript
5 lines
162 B
TypeScript
|
import { useParams as useParamsRR } from "react-router-dom-v5-compat";
|
||
|
|
||
|
export const useParams = <T extends Record<string, string>>() =>
|
||
|
useParamsRR<T>() as T;
|