UNPKG

pathpunk

Version:

A react component based router with most of the functionalities of an SPA router

7 lines (6 loc) 343 B
/// <reference types="react" /> import { RouterContextValue, RouterProps } from '../types'; declare const RouterContext: import("react").Context<RouterContextValue | null>; declare function Router({ allowHistory, children, name, routes }: RouterProps): import("react/jsx-runtime").JSX.Element; export { RouterContext }; export default Router;