DEV Community

Discussion on: Custom React Hooks: useBoolean

iamludal profile image
Ludal 🚀 Author

You're right, I think useRef makes sense in this case and the way you used it. Thanks for pointing that out.