DEV Community

[Comment from a deleted post]
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.