Allow passing second type parameter to `useMap`
holubond opened this issue · comments
Ondra Holub commented
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>();