3 ms·
In this specific case above they work the same, useCallback memoizes the instance of a function passed. useMemo memoizes the execution of the function it is
by pacomerh 3y ago
In this specific case above they work the same,
useCallback memoizes the instance of a function passed.
useMemo memoizes the execution of the function it is passed.
but both have valid separate uses.