Manta Developers
GitHub
Menu

@manta-eu/react/use-toggle-set

Reference for @manta-eu/react/use-toggle-set as it is on main.

Functions

useToggleSet()

useToggleSet<T>(initialSet?): readonly [Set<T>, (id) => void, Dispatch<SetStateAction<Set<T>>>]

Type Parameters

T

T = string

Parameters

initialSet?

Set<T> = ...

Returns

readonly [Set<T>, (id) => void, Dispatch<SetStateAction<Set<T>>>]