2 ms·
I've normally heeded to the advice from Dan Abramov (https://overreacted.io/before-you-memo/ https://overreacted.io/before-you-memo/) and KCD (https://kentcdodd
by cheeew 5y ago
I've normally heeded to the advice from Dan Abramov (https://overreacted.io/before-you-memo/ https://overreacted.io/before-you-memo/) and KCD (https://kentcdodds.com/blog/usememo-and-usecallback https://kentcdodds.com/blog/usememo-and-usecallback): mainly due to the fact that I figured performance would take a significant hit by using unnecessary React.memo / useMemo calls throughout the codebase.
One negative side-effect I could see as a result of this pattern is devs becoming too reliant on these optimizations and neglecting composition.
But I suppose if the performance gain is substantial enough and DX isn't negatively impacted too much, it could serve as worthwhile-- especially at the level of scale which Coinbase requires.