React Compiler
A build-time tool from the React team that automatically adds memoization to components and hooks, so you rarely need useMemo, useCallback or React.memo.
In more detail
It analyses each component and caches values, functions and JSX that depend only on unchanged inputs. It relies on the Rules of React and skips any function that breaks them. Version 1.0 was released in October 2025 and works with React 17 and later.
Related terms
- memoization — Remembering the result of a calculation for given inputs and reusing it when the same inputs come again, instead of recalculating.
- Rules of React — The official rules React code must follow: components and hooks are pure, React calls components and hooks, and the Rules of Hooks apply.
- memo cache — The fixed-size array of cached values the React Compiler gives each component, with one slot per memoized value.
- compiler — A program that translates source code a person wrote into a form a machine or runtime can execute, checking it for errors on the way.
Taught in
- Rules of Hooks: Call Order, Hook Lists, And Fiber Storage — React 19 & Modern Component Architecture
- Client-Side Data Fetching Architectures with Suspense — React 19 & Modern Component Architecture
- React.memo, useMemo, And useCallback: Optimization Costs — React 19 & Modern Component Architecture
- The React Compiler: Automated Memoization Under The Hood — React 19 & Modern Component Architecture