Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Whereas in React, it seems idiomatic to just memoize and throw in shouldComponentUpdate wherever you can as much as you can.

Absolutely not, wrapping everything in shouldComponentUpdates probably leads to worse performance as the comparison checks are more expensive in hot paths than just rendering everything again (same with PureComponents and so on).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: