Class components and migration
PureComponent
Class base using shallow comparisons of props and state; context changes can still update the component.
Formal Syntax & Structure
react syntaxreact
class Card extends React.PureComponent { render(){ return <p>{this.props.name}</p>; } }Working Example
Example Snippetreact
class Card extends React.PureComponent { render(){ return <p>{this.props.name}</p>; } }