Function useSetAsState

  • The returned object can be used exactly like a

    Type Parameters

    • T

    Parameters

    • initialSet: Set<T> | (() => Set<T>)

      Can be a

    Returns Set<T>

    See

    • Set , maintaining the complete interface. The difference is that the set will be held in state and properly re-render components as required. There are also a few methods added for re-rendering performance reasons.
    • Set or an initialization function that returns a Set.

Generated using TypeDoc