DEV Community

Discussion on: `useCallback` vs `useMemo` Hooks

Collapse
 
wra-sol profile image
Nathaniel Arfin

useMemo and useCallback will be deprecated in React 19, FYI!

Collapse
 
sivamani18 profile image
Sivasubramaniyam

Thanks for the heads-up! 🙌

While it's good to stay informed about upcoming changes, a lot of companies are still running on older versions like React 16 or 17. In fact, some organizations take years before upgrading to the latest major versions due to stability concerns or the size of their codebase.

So, even though useMemo and useCallback might be deprecated in React 19, these hooks will likely still be widely used in production environments for quite a while. 😊

But it's always good to be aware of what's coming—thanks again for sharing! 🙏

Collapse
 
lwhiteley profile image
Layton Whiteley • Edited

I don't think they will be deprecated. The react compiler just automatically adds them for you.

That's not really a deprecation