Hacker News new | past | comments | ask | show | jobs | submit login

How so? My understanding is you'd still need to implement shouldComponentUpdate in the class component.



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: