useMap

Keep a Map in state that renders again when it changes.

This is custom React hooks, you need to follow the Basic Rules when you use it.

General

set, delete and clear render the component again.

APIs

useMap

const useMap = <K, V>(
  initialState?: Iterable<readonly [K, V]>,
) => Map<K, V>
Edit this page on GitHub