Using the useCallback vs useMemo Hook is one of the built-in hooks we can use to optimise our code. In this article you will learn the differences between and as well as how to measure the gain of the improvements you're getting in the codebase. The following methods for optimising React are really last resort options.
Table of contents
Resources You'll Need to Follow AlongWhat is Referential Equality?How React.memo WorksHow the useCallback Hook WorksHow the useMemo Hook WorksWhen to OptimiseHow to Measure Performance Impact/GainConclusion3 Comments
Sort: