Hacker Newsnew | past | comments | ask | show | jobs | submit | ald890's commentslogin


I created the benchmark for this.

Because in every aspect it seems that React.memo is better. Especially when we are sure of stable argument references.

Even when you add children to the component with memo, the worst case performance will be the same.

https://codesandbox.io/s/react-memo-benchmark-m2bk6?file=/sr...


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

Search: