DEV Community

Discussion on: Custom React Hooks: useBoolean

Collapse
joeattardi profile image
Joe Attardi

I don't know if we need an abstraction over a boolean value?

Collapse
iamludal profile image
Ludal 🚀 Author

Thanks for your comment! Indeed, we probably don't need so much abstraction (though it can simplify the overall code in a way). This one was more for educational purposes to understand the logic behind creating custom hooks, in order to implement more complex ones. 😁