Slide 29
Slide 29 text
S H O U L D C O M P O N E N T U P D AT E
• React components have a lifecycle method called
shouldComponentUpdate() that React runs in order to tell if it should re-
render the component or not.
• For components that never re-render, always return false.
• For perf bottlenecks, implement your own shouldComponentUpdate.
• For other components, leave them alone. It can introduce hard-to-find
bugs.