useEffect

What is the purpose of returning a cleanup function in useEffect?
Next Question (17/22)