Return function also called cleanup function is used to clear all unwanted things after useEffect ends. So it can be applied for all these options.
Question 5 of 22 in useEffect