should we stop using useMemo and useCallback in react v19?

And is it safe to remove my old useMemo and useCallback?
3 Replies
Neto
Neto6mo ago
A hand optimized react app is faster than the compiler online Even if you use the compiler, you still need the rules of react to make sure it works
Jotas
Jotas6mo ago
AFAIK, yes. If you notice anything weird or rerendering more than you need then you can manually fix the specific case
usmanabdurrehman
Yes. useMemo and useCallback also dont solve the memoization issue always and a lot of times there is literally no need of memoization at all and devs still do it. If React Compiler is shipping with React 19 then stop using them.
Want results from more Discord servers?
Add your server