React New Compiler
Answered
Cane Corso posted this in #help-forum

Cane CorsoOP
Hey, how will next.js handle the new react compiler update? i heard it will fix a lot of the performance issues by adding the ness memo, callback and useMemo function and etc, will next.js also handle it?
Answered by Asian black bear
Since we have to wait until React 19 comes out we can't say for sure how fast Next.js will integrate the features since it's using swc and Turbo at the moment.
4 Replies

Saint Bernard
You're correct that the new React compiler update aims to improve performance by introducing optimizations like automatic
useMemo
, useCallback
, and memoization for specific React components. However, Next.js already handles many of these optimizations itself.Next.js Compiler: [https://codedamn.com/online-compiler/next]
React Compiler Update:[https://react.dev/]
React Compiler Update:[https://react.dev/]

@Saint Bernard You're correct that the new React compiler update aims to improve performance by introducing optimizations like automatic `useMemo`, `useCallback`, and memoization for specific React components. However, Next.js already handles many of these optimizations itself.

Asian black bear
Next.js doesn't do any of the optimizations that the new React compiler aims for.

Asian black bear
Since we have to wait until React 19 comes out we can't say for sure how fast Next.js will integrate the features since it's using swc and Turbo at the moment.
Answer