Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ioseph
on Aug 19, 2021
|
parent
|
context
|
favorite
| on:
A Visual Guide to React Rendering
How so? My understanding is you'd still need to implement shouldComponentUpdate in the class component.
dandelany
on Aug 19, 2021
[–]
You can just use PureComponent instead of implementing shouldComponentUpdate, but you're right that it doesn't come "for free".
PureComponent : class components :: memo : function components
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: