UNPKG

@acrool/react-router-hash

Version:

Hash Route + History Route Additional based for React Route v6

17 lines (16 loc) 706 B
import { default as React } from 'react'; import { IndexRouteProps, LayoutRouteProps, PathRouteProps, RouteObject } from 'react-router-dom'; /** * Create Routes From Children * @see https://github.com/remix-run/react-router/blob/v6.3.0//packages/react-router/lib/components.tsx#L270 * @param children */ export declare function createRoutesFromChildren(children: React.ReactNode): RouteObject[]; /** * Hash Route * @see https://github.com/remix-run/react-router/blob/v6.3.0//packages/react-router/lib/components.tsx#L144 * @param _props * @constructor */ declare function HashRoute(_props: PathRouteProps | LayoutRouteProps | IndexRouteProps): React.ReactElement | null; export default HashRoute;