Skip to content
masterclass Buddy

Next.js 16+ · Option

reactCompiler

The reactCompiler option enables React Compiler support in Next.js. It can automatically optimize component rendering and reduce the need for manual useMemo and useCallback.

Last updated

Since
v16.0.0

Syntax

reactCompiler: true
reactCompiler: { compilationMode: 'annotation' }
reactCompiler: { environment: { enablePreserveExistingMemoizationGuarantees: boolean } }

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • babel-plugin-react-compiler
  • compilationMode
  • use memo
  • use no memo
  • enablePreserveExistingMemoizationGuarantees
  • useMemo
  • useCallback
  • React.memo

Source: reactCompiler. Checked 2026-11-03.