Ishwar Rimal
1 min readOct 23, 2023

--

Hmmm.

Makes sense.

Firstly, just to defend my original article, :D , if anyone is actually intending to gain some performance optimization by using `useCallback`, they would screw it up if they wrapped it in an inline function (by mistake or by ignorance)

Secondly, you've provided such an insightful points that I can not argue with. And honestly even I agree that optimization just for the sake is worse than not optimizing at all (just like writing complex code by compromizing the readability, hoping it would improve performance is just a epitome of ignorance -> personal opinion)

I would like to know your thought on what is the threshold/ significant value of this performance gain/loss after which a developer should think of optimization?

Considering there are chances that the 1MS delay in my system with 16GB of ram would be significantly higher for someone with a way less powerful system.

--

--

Ishwar Rimal
Ishwar Rimal

Written by Ishwar Rimal

Senior FrontEnd Engineer at Intuit. 8 years experience. I write articles on JavaScript, React, Web Optimisation, Startups, Work Life Balance, etc. ❤️ JavaScrip

No responses yet