UNPKG

react-history-switch

Version:

Self-hosted context-free Switch routing component for History.js library (React). The library was created to transfer navigation responsibility from a view into Mobx state container (MVC). Also can be used separately as a self-hosted router

7 lines (6 loc) 236 B
import * as React from 'react'; interface ILinkProps extends Omit<React.HTMLProps<HTMLAnchorElement>, 'href'> { to: string; } export declare const Link: ({ to, ...otherProps }: ILinkProps) => JSX.Element; export default Link;