useBoolean
hook. Check out the source, it does exactly the thing you would be doing yourself when dealing with the visibility of pop-ups, dropdowns and alike. No more no less.
Just a small convenience which I use in my code, made it into a standalone package in order to avoid duplication across projects.
And here is a live example.
...
Top comments (0)