Questions how to execute cleanup function in useEffect() only when component unmounts byMRMay 25, 2022