uidotdev / usehooks

A collection of modern, server-safe React hooks – from the ui.dev team

Home Page:https://usehooks.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow passing second type parameter to `useMap`

holubond opened this issue · 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>();