hele-router
Version:
Declarative routing for hele.
15 lines (14 loc) • 379 B
TypeScript
import { Router, RouterProps } from "./Router";
export interface SwitchProps extends RouterProps {
path?: string;
}
export declare class Switch extends Router {
constructor(props: SwitchProps, context: any);
static defaultProps: {
path: string;
name: string;
};
private _history;
push(path: string): void;
pop(): void;
}