📝React.useCallback breaks encapsulation
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.
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.