React.memo for Component Memoization
Learn how React.memo skips re-rendering a component when its props haven't meaningfully changed.
React.memo(Component) wraps a function component so that React skips re-rendering it if its props are shallowly equal to the props from the previous render. By default it compares each prop with Object.is, the same reference-equality check React uses elsewhere, so it works best when props are primitives or stable references rather than freshly created objects/arrays/functions on every parent render.
React.memo is like a assistant who checks 'is the instruction exactly the same as last time?' before redoing an entire task — if literally nothing changed, they just hand you yesterday's finished result again instead of redoing all the work, but if even one word of the day's instructions differs, they redo the whole thing from scratch.