DEV Community

Discussion on: Custom React Hooks: useBoolean

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. 😁