useMap

React state hook that tracks a value of an object.

hooks
{
  "hello": "there"
}

Variants

with useHooks

useMap

Jazz vs Suns
Jazz32
Suns50

The useMap hook provides a wrapper around the JavaScript Map object and allows you to easily update and synchronize the map state with the component’s rendering. By using this hook, you can add, delete, or clear entries in the map while ensuring that the component re-renders whenever these operations are performed.

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-map
# └──> Hook coming soon.

Usage