@web-package/react-widgets-router
Version:
This package is a router that provides transition animations and fully preserves the state of previous elements, offering an experience close to a Web standard API.
8 lines (7 loc) • 321 B
TypeScript
import { RouterContext } from "../modules/router_context";
/**
* This hook is used to reference the currently uniquely defined pure router context.
* Therefore, it is used to consume paths, not for the purpose of referencing
* absolute or relative paths.
*/
export declare function useRouterContext(): RouterContext;