Concept Flow - useCallback hook
Component renders
useCallback creates memoized function
Function passed to child or used
State or props change?
No→Return memoized function
Yes
Dependencies changed?
No→Return memoized function
Yes
Create new function instance
Component re-renders with new function
When a component renders, useCallback returns a memoized function that only changes if its dependencies change, avoiding unnecessary re-creations.