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.