What does useEffect cleanup do?
Short take
Full answer on next page
Simple meaning
The function you return from useEffect runs before the next effect and on unmount.
Open the full page for Why, Steps, Example and Key takeaway.
Read full answer
Example · Mistake · Say this