The article explains why using React.memo, useMemo, and useCallback in components is beneficial and how it helps avoid unnecessary rerenders.
Table of contents
Why We React.memo All ComponentsSane DefaultsCPU Cost of React.memoMemory Cost of React.memoIsn’t it Premature Optimization?Why we React.useCallback All CallbacksWhy we React.useMemo All the Props & DepsWill Someone Please Think of the Children?Conclusion10 Comments
Sort: