What is the expected return of `useEffect` used for?
Why is the return a function? return () => { ignore = true }; From the docs, Why did we return a function from our effect? This is the optional cleanup mechanism for effects. Every effect may return a function that cleans up after it. This lets us keep the logic for adding and removing … Read more