Capítulo 89 de 116
PureComponent is the class-component base class that automatically shallow-compares props and state before re-rendering — the legacy, class-based equivalent of wrapping a function component in memo.
Component with an automatic shallow comparison: a class extending PureComponent skips its render() call when neither props nor state have shallowly changed since the last render, without needing to implement shouldComponentUpdate manually.memo: an object/array/function prop or state value recreated fresh each time still counts as "changed" under shallow comparison, even with identical contents — the same reference-stability discipline from Ch 59/49 applies.memo (Ch 88) instead, which is the direct modern equivalent.PureComponent rather than the plain Component base class to get this behavior — it's opt-in, not a default optimization for all class components.memo — same shallow-comparison behavior, same reference-stability requirements to actually benefit from it.memo on function components rather than PureComponent on class components.memo, it's an optimization to apply where profiling shows a real benefit, not a default choice.