UNPKG

react-navi

Version:

A batteries-included router for react.

11 lines (10 loc) 355 B
import * as React from 'react'; import { History as IHistory } from 'history'; export declare function useHistory(): IHistory<any>; export interface HistoryProps { children: (history: IHistory) => React.ReactNode; } export declare namespace History { type Props = HistoryProps; } export declare function History(props: HistoryProps): JSX.Element;