Re:React Docs Beta – rewritten with hooks and interactive ex...
by mattwad on Saturday October 23, 2021 @03:30PM
(#28971472)
I feel like you could go more into depth to defend your assertion "no memo is not an option." As someone who has spent hours on jsperf back in the day -- my apps feel blazing fast already. Many devs I know also don't use memo or useCallback at all. It sounds like you're adding an entire layer of extra abstraction "just in case." But then again, maybe your use case makes it warranted.
[ Parent
| on HN ]
Re:React Docs Beta – rewritten with hooks and interactive ex...
by eatonphil on Saturday October 23, 2021 @05:36PM
(#28972564)
Same, I haven't seen a need for it for performance yet across a few companies and open source apps I've worked on.
Re:React Docs Beta – rewritten with hooks and interactive ex...
by eh9 on Sunday October 24, 2021 @12:23AM
(#28974950)
Every single time I’ve needed to use memo the performance gains where obvious.
Re:React Docs Beta – rewritten with hooks and interactive ex...
by sibeliuss on Sunday October 24, 2021 @01:14AM
(#28975174)
A: You'll know when you need it. Until that point one is firmly in the realm of premature optimization.
Re:React Docs Beta – rewritten with hooks and interactive ex...
by atom_arranger on Sunday October 24, 2021 @07:51AM
(#28977071)
The post points out that given memoization in many cases avoids serious perf/functional issues not memoizing may be considered premature optimization.