react-router-magic
Version:
Like react-router but with magic inside
24 lines (23 loc) • 826 B
TypeScript
/// <reference types="react" />
import { Component, ValidationMap } from 'react';
import { History, Location } from 'history';
import { Store, RouterStoreState } from './Store';
export declare type RouterProviderProps = {
history: History;
location: Location;
};
export declare type RouterProviderChildContext = {
router: {
history: History;
};
routerStore: Store<RouterStoreState>;
};
export declare class RouterProvider extends Component<RouterProviderProps, {}> {
static displayName: string;
static childContextTypes: ValidationMap<any>;
private routerStore;
constructor(props: RouterProviderProps);
UNSAFE_componentWillReceiveProps(nextProps: RouterProviderProps): void;
getChildContext(): RouterProviderChildContext;
render(): JSX.Element;
}