Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 403 Bytes

10.PureComponent.md

File metadata and controls

10 lines (5 loc) · 403 Bytes

Jam3 Lessons - React

React.PureComponent

When you know a component will always render the same result given the same props and state you can extend from React.PureComponent instead of React.Component which implements shouldComponentUpdate() with a shallow compare on them.

References