map

v0.0.1arrow_drop_down
v0.0.1
STATUS
Passing
DOWNLOADS
35
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
901 B
1 contributor
Install map as a package?
Copied
npm i @bit/giladshoham.react-hooks.power-hooks.map
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

useMap

This hook allows you to use a map object and get methods to manipulate the map. Takes an initialValue

Usage

const {
  set: setKey,
  get: getKey,
  has,
  delete: deleteKey,
  clear,
  reset,
  values
} = useMap({ name: "PK", age: "30", occupation: "Reactor" });
Help and resources