DEV Community

Discussion on: How does a React class-based component perform cleanup?

Collapse
 
napoleon039 profile image
Nihar Raote

This is why I love Hooks more than lifecycle methods. Although the useEffect hook takes some time to get used to and use properly, it's worth it.

Check out this article if you haven't already. It has a ton of information on the useEffect hook, common mistakes people tend to make when using it and how to use it properly.