useSet

Keep a Set 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

add, delete and clear render the component again.

APIs

useSet

const useSet = <T>(values?: readonly T[]) => Set<T>
Edit this page on GitHub