React Compiler Beta Release
Key Points
- Beta released on npm
- ESLint plugin usable standalone
- Supports React 17+ via runtime
Summary
React Compiler Beta is published to npm under the @beta tag. It provides build-time automatic memoization and a companion ESLint plugin that surfaces Rules of React issues. The compiler now supports apps on React 17+ via the optional react-compiler-runtime, and library authors can compile and ship pre-compiled packages so consumers benefit without enabling the compiler.
Key Points
- Install (beta):
npm install -D babel-plugin-react-compiler@beta eslint-plugin-react-compiler@betaoryarn add -D babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta. - ESLint plugin recommended and usable standalone:
npm install -D eslint-plugin-react-compiler@beta; enable it in your ESLint config to detect Rules of React violations before enabling the compiler. - Backwards compatibility: set a minimum target in your compiler config and add
react-compiler-runtimeto support React 17/18; the runtime will polyfill the required APIs depending on the host app. - Libraries: compile source in the library repo prior to publishing so downstream apps receive pre-compiled, memoized code without running the compiler.
- Working Group: public membership opened for community feedback; continue filing bug reports in the React repo and use the Working Group discussion forum for design feedback.
- Roadmap: experimental → public Beta (today) → Release Candidate → General Availability (Stable); future work includes merging the compiler ESLint plugin with
eslint-plugin-react-hooksand additional compiler optimizations.
Actionable next steps
- Run the ESLint plugin first to catch Rules of React issues.
- Try the beta in an isolated branch or small repo, and if targeting React <19 add
react-compiler-runtimeand setminTarget. - Library maintainers: compile and test before publishing to npm so consumers benefit immediately.
Links
See the React Compiler docs and the Working Group discussion forum for detailed setup, configuration, and migration guidance.