UNPKG

react-best-router

Version:

In larger React applications, it is usually necessary to use a Router to handle relationships between pages and navigate between them. Are you using other Router libraries? Have you encountered any areas that are not very useful? For example, defining nes

6 lines (5 loc) 191 B
export type RouterState = { path: string; }; export type RouterStateChangeHandler = (state: RouterState) => void; export declare function normalizeState(state: RouterState): RouterState;