Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React 19] is the new compiler remove this unnecessary usgae of the useCallback #31924

Open
TonyFTannous-Byd opened this issue Dec 27, 2024 · 0 comments
Labels

Comments

@TonyFTannous-Byd
Copy link

TonyFTannous-Byd commented Dec 27, 2024

Hello,
using React 19 with the implementation of the new compiler (babel-plugin-react-compiler), no need to use useCallback and memo... explicitly because the new compiler do this job (as react compiler documentation).
my question is if explicitly i use useCallback with a function in my functional component not need the usage of useCallback (significant performance gains). is the new compiler remove this unnecessary usgae of the useCallback?

thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant