News for hackers. Stuff that matters.
Re:Understanding UseMemo and UseCallback by foomatic on Wednesday August 31, 2022 @12:51AM (#32658493)
"useCallback" is not very intuitive naming. I'd guess a fair bit of the confusion could be attributed to this alone. Could have been useMemoizedValue useMemoizedCallback at least. The whole useXXX naming convention is also unintuitive.
Re:Understanding UseMemo and UseCallback by adamredwoods on Wednesday August 31, 2022 @01:29AM (#32658716)
Or the term "side effect" (especially in a language that does not enforce return types): https://dev.to/ruizb/side-effects-21fc