UNPKG

@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) 317 B
import { RouterContext } from "../modules/router_context"; /** * This hook is used to reference the currently uniquely defined pure router context. * Therefore, it is used not only for referencing absolute or relative paths * but also for consuming paths. */ export declare function useLocation(): RouterContext;