A Look Behind the Scenes of React & Optimization TechniquesEntry 10 of 10

Summary

OptimizationReactAngular
Find slow componentsDevTools ProfilerAngular DevTools Profiler
Skip re-render on same propsmemo()OnPush (and signals)
Reduce re-render scopeMove state downKeep state local
Cache a computed valueuseMemo()computed() / pure pipe
Stable function identityuseCallback()Class methods
List identitykeytrack in @for
Reset component stateChange its keylinkedSignal() / one-item @for
DOM updatesVirtual DOM diffingCompiled binding updates
Automatic memoizationReact CompilerBuilt into signals

React re-runs components and gives you tools (memo, useMemo, useCallback, keys, and now the compiler) to limit that work. Angular avoids most of the work in the first place: signals update only the bindings that depend on them.