useCallback
up:: React Hooks This mitigates a pitfall in React.memo.
wrap the function you pass as a prop in the parent container in a useCallback()
function.
like useEffect it needs an array of dependencies. anything used in the function should be specified.
It stores a function and it doesn’t recreate