MemotivaPerformance Optimization

What is PureComponent?

Performance Optimization

Audio flashcard · 0:13

Nortren·

What is PureComponent?

0:13

PureComponent is a class component base that implements shouldComponentUpdate with a shallow comparison of props and state. It re-renders only when a shallow check detects changes, similar to React.memo for class components.