Add a useSet hook for having Set based state #697
aakarshbaiju
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if there could be a hook for interfacing with the Set object as I can see one already implemented for the Map object. This could be similar to one provided here https://usehooks.com/useset or in this https://stackoverflow.com/questions/58806883/how-to-use-set-with-reacts-usestate.
For context this is the implementation I usually go with but please feel free to add whatever seems best suited to the library.
Beta Was this translation helpful? Give feedback.
All reactions