How do you handle cleanup for a subscription in useEffect?
To handle cleanup for a subscription in useEffect, you should define a cleanup function inside the return statement of the useEffect callback. React will automatically call this cleanup function when the component unmounts or before re-running the effect.