hele-router
Version:
Declarative routing for hele.
18 lines (17 loc) • 485 B
TypeScript
import { Component, Reference, ComponentGetter } from "hele";
export interface RouteProps {
ref?: Reference;
router?: string;
exact?: boolean;
path: string;
render?: (matched: boolean) => any;
component?: ComponentGetter<{}>;
children: any;
}
export declare class Route extends Component<RouteProps, boolean> {
constructor(props: RouteProps, context: any);
static defaultProps: {
router: string;
};
render(): any;
}