Chapter 5 · Example 7 · Memoization with useMemo, useCallback and React.memo

Nested memoized children

Nesting one memoized component inside another still breaks the parent memoization, since the child element is an unmemoized object until wrapped in useMemo.

Loading live editor…