DEV Community

Discussion on: Most useful hooks in React

Collapse
 
miketalbot profile image
Mike Talbot ⭐ • Edited

Your description of the useEffect hook is wrong, useEffect does not take a third parameter which is the clean up function, rather the side effect function can return a function for cleanup.