react-router-magic
Version:
Like react-router but with magic inside
13 lines (12 loc) • 487 B
TypeScript
/// <reference types="react" />
import { StatelessComponent, HTMLProps } from 'react';
import { LocationDescriptorObject } from 'history';
import { Match, ValOrFunc } from './utils';
export declare type LinkProps = HTMLProps<HTMLAnchorElement> & {
to: ValOrFunc<(string | LocationDescriptorObject)>;
activeClassName?: string;
match?: ValOrFunc<Match>;
replace?: boolean;
noSubscribe?: boolean;
};
export declare const Link: StatelessComponent<LinkProps>;