useSet

React state hook that tracks a Set.

hooks
Description of the SVG image Loading...

About

Documentation about Set: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set


What is the difference between the clear() method and the reset() method?

The reset() method returns the Set to the initial value passed during useSet. The clear() method completely empties the Set.

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-set
# └──> Hook coming soon.

Usage