react-19-remove-memoization
Remove manual React memoization calls: useCallback(...), useMemo(...), and memo(...).
This codemod is intended for React Compiler adoption and mirrors react/19/remove-memoization from codemod/commons.
This is not a universally safe codemod. React Compiler is not a 1:1 replacement for every manual
useMemo,useCallback, ormemooccurrence, so some memoization may need to be kept to preserve semantics.
Usage
bash
Example
Before
tsx
After
tsx