Next.js · Senior · Question 30 of 75
When should you enable reactCompiler in Next.js 16?
- ✓Correct answer: When the code follows the rules of React; builds get slower
- 2Always: it's on by default and doesn't affect build time
- 3Never in production: it's experimental and unstable
Explanation
In Next.js 16, React Compiler support is stable but disabled by default. The compiler relies on Babel, so builds get slower. It skips components that break the rules of React - the ESLint plugin helps find them.