An updated version of this article with hooks API anti-patterns might be helpful. My pet peeve: devs who use the useCallback hook for *every callback* function.

I'm not sure why some devs insist on using something they don't seem to understand-- when it almost always works perfectly fine without. Do they see it as an optimization due to a misunderstanding of memoization and how to apply it as an optimization?

...Never mind that fact that optimizations like useCallback should usually only be applied later, following the principle that one does not optimize first.

Jeremy Dombrowski

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store