You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// What's the purpose of useCallback and how is it different from useMemo?
// ✅ Answer:
// useCallback returns a memoized function. It's useful when you're passing callbacks to child components to prevent re-renders due to changing function references.
// It's like useMemo, but specifically for functions.