DEV Community

Discussion on: React.useEffect hook explained in depth on a simple example

Collapse
 
akramnarejo profile image
Akram Narejo • Edited

Fix: rendered callback will be cleaned up on the next rendering, either has dependencies or not.
stackoverflow.com/questions/570230...