Many useCallback and useMemo implementations are pointless because they don't provide actual performance benefits. Memoization only helps when passing props to memoized components or preventing effects from firing unnecessarily. Common anti-patterns include memoizing functions passed to regular components and using
•9m read time• From tkdodo.eu
7 Comments
Sort: