When to useMemo and useCallbackUsing React.useCallback may not always result in better performance as it can introduce additional work and memory overhead.