Feb 19, 2021
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.