What are common resources to clean up in componentWillUnmount or useEffect cleanup?
Common resources to clean up during unmounting include timers (clearTimeout/clearInterval), event listeners (removeEventListener), subscriptions (unsubscribe methods), WebSocket connections, and any other external resources the component may have initialized that could cause memory leaks if not properly disposed of.