useEffect is React's mechanism for handling side effects like API calls, event listeners, and DOM manipulation after rendering. The hook supports three behaviors: running on every render (no dependencies), once on mount (empty array), or when specific values change (dependency array). Proper cleanup functions prevent memory

Sort: