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
Post cover image
Table of contents
Why memoize?1. No memo - no perf gains2. Using props as dependencies
7 Comments

Sort: