usehooks icon indicating copy to clipboard operation
usehooks copied to clipboard

Allow passing second type parameter to `useMap`

Open holubond opened this issue 1 year ago • 0 comments

Currently useMap only allows a single type parameter (for the key). It makes sense to be able to type the value as well.

Example

const myMap = useMap<string, string>();

holubond avatar Feb 11 '24 20:02 holubond