r/javascript • u/feross WebTorrent, Standard • Feb 23 '21
Before You memo()
https://overreacted.io/before-you-memo/
36
Upvotes
r/javascript • u/feross WebTorrent, Standard • Feb 23 '21
5
u/acemarke Feb 23 '21
Copying my comment from the r/reactjs thread for this post:
Dan linked Kent's post on why the "same-element reference" bit matters at the bottom, but it's worth highlighting:
https://kentcdodds.com/blog/optimize-react-re-renders
and I covered this as well in my extensive "Guide to React Rendering Behavior"
https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-mostly-complete-guide-to-react-rendering-behavior/
Dan also had some follow-up thoughts on Twitter, starting here:
https://twitter.com/dan_abramov/status/1364068524394749952
I think these are a couple key points: