📝React.useCallback breaks encapsulation

tags
React
top
Do not overuse React.useCallback

useCallback breaks encapsulation as the caller needs to know the implementation of the child (whether it uses React.memo) to select whether to use useCallback or not.

Backlinks