I don\'t understand why useCallback always returns a new ref each time one of the deps is updated. It results in many re-render that React.memo() could
useCallback
React.memo()