DEV Community

loading...

Discussion on: React useEffect() hook tutorial for begginers

Collapse
ratuloss profile image
Ratul Author • Edited

the cleanup function will be executed when any other new value will exist for the same variable and yeah it works.