React · Middle · Question 31 of 75
What does the React Compiler do?
- ✓Correct answer: Memoizes components and values at build time
- 2Compiles JSX to WebAssembly to speed up rendering
- 3Automatically converts class components to functions
Explanation
The compiler analyzes code and inserts memoization itself, so manual useMemo, useCallback and memo are mostly unnecessary. It relies on the rules of React (pure renders, immutability) and skips components that break them. In Next.js 16 it's enabled with the reactCompiler option.