UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

6 lines (5 loc) 273 B
type MapState<K extends string | number | symbol, V> = { [key in K]: V; }; export declare function useMapState<K extends string | number | symbol, V>(initialState?: MapState<K, V>): [MapState<K, V>, (key: K, value: V) => void, (key: K) => void, () => void]; export {};