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

8 lines (7 loc) 210 B
import ISwitchItem from "../model/ISwitchItem"; interface IParams { items: ISwitchItem[]; url?: string; } export declare const getItem: ({ items, url, }: IParams) => any; export default getItem;