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

from the article:

> If a component has a bunch of props and not a lot of descendants, it can actually be slower to check if any of the props have changed compared to re-rendering the component. (I don't have a source for this claim, but I've seen prominent developers like Dan Abramov make this case on Twitter)

It might vary from application to application but this seems like something that could be tested.

Also on the other side of the coin, you have memo all the things: https://attardi.org/why-we-memo-all-the-things/



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

Search: