useEffect

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

Question 17 of 22 in useEffect