Explore Library
Flashcard

Composition Before Memoization

Lifting expensive children into props via composition can prevent re-renders without reaching for React.memo.

Question

Why should composition often be your first re-render optimization before React.memo, useMemo, or useCallback?

Click to reveal answer