React
react.dev › learn › react-compiler › installation
Installation – React
The compiler needs the original source information for proper analysis, so it must process your code before other transformations. ... Please refer to the Next.js docs for more information. Install vite-plugin-babel, and add the compiler’s Babel plugin to it:
Reddit
reddit.com › r/reactjs › how to use the react compiler in a vite react 18 project. (easy tutorial)
r/reactjs on Reddit: How to use the React Compiler in a Vite React 18 project. (easy tutorial)
December 6, 2024 -
1. npm install -D babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta
2. npm install react-compiler-runtime@beta
3. Edit your vite.config.js file like this:
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vite.dev/config/
export default defineConfig({
plugins: [
react({
babel: {
plugins: [['babel-plugin-react-compiler', { target: '18' }]],
},
}),
],
});4. Build your app and run it. (npm run build and then npm run preview).
Videos
05:27
React Compiler / React Forget - with Vite - YouTube
Install React 19 + React Compiler in Vite – Setup & Config Guide ...
03:04
How to Setup React 19 with Vite - YouTube
04:17
How To Install React 19 with React Compiler in Vite - YouTube
FASTEST Way to Install React 19 with Vite in 3 min
How to speed up your react-router apps with react-compiler
GitHub
github.com › reactwg › react-compiler › discussions › 30
react-compiler-runtime with vite · reactwg react-compiler · Discussion #30
October 30, 2024 - I verified that react-compiler-runtime is installed as a direct dependency "react-compiler-runtime": "^19.0.0-beta-6fc168f-20241025",
Author reactwg
npm
npmjs.com › package › @vitejs › plugin-react
@vitejs/plugin-react - npm
1 week ago - npm install -D @rolldown/plugin-babel babel-plugin-react-compiler · // vite.config.js import { defineConfig } from 'vite' import react, { reactCompilerPreset } from '@vitejs/plugin-react' import babel from '@rolldown/plugin-babel' export default defineConfig({ plugins: [react(), babel({ presets: [reactCompilerPreset()] })], }) The reactCompilerPreset accepts an optional options object with the following properties: compilationMode — Set to 'annotation' to only compile components annotated with "use memo".
» npm install @vitejs/plugin-react
Published Mar 13, 2026
Version 6.0.1
Author Evan You
Repository https://github.com/vitejs/vite-plugin-react
Vite
vite.dev › guide › features
Features | Vite
All modern frameworks maintain integrations with Vite. Most framework plugins are maintained by each framework team, with the exception of the official Vue and React Vite plugins that are maintained in the vite org:
npm
npmjs.com › package › eslint-plugin-react-hooks
eslint-plugin-react-hooks - npm
import reactHooks from 'eslint-plugin-react-hooks'; export default [ { files: ['**/*.{js,jsx}'], plugins: { 'react-hooks': reactHooks }, // ... rules: { // Core hooks rules 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', // React Compiler rules 'react-hooks/config': 'error', 'react-hooks/error-boundaries': 'error', 'react-hooks/component-hook-factories': 'error', 'react-hooks/gating': 'error', 'react-hooks/globals': 'error', 'react-hooks/immutability': 'error', 'react-hooks/preserve-manual-memoization': 'error', 'react-hooks/purity': 'error', 'react-hooks/refs': 'error', 'react-hooks/set-state-in-effect': 'error', 'react-hooks/set-state-in-render': 'error', 'react-hooks/static-components': 'error', 'react-hooks/unsupported-syntax': 'warn', 'react-hooks/use-memo': 'error', 'react-hooks/incompatible-library': 'warn', } }, ];
» npm install eslint-plugin-react-hooks
Published Oct 24, 2025
Version 7.0.1
Repository https://github.com/facebook/react
Homepage https://react.dev/
GitHub
github.com › reactjs › react.dev › issues › 8215
[Typo]: React Compiler Vite installation docs with "vite-plugin-babel" cause sourcemap issues · Issue #8215 · reactjs/react.dev
December 29, 2025 - When following the setup instructions for React Compiler on the current live docs site, if using a custom Vite Babel plugin + React SWC or React Router v7 framework mode, you will notice that if a component gets optimized by React Compiler, the sourcemaps appear to have some React Compiler-optimized code paths in them, making dev debugging more difficult.
Author andrew-locklair-fs
egghead.io
egghead.io › tips › setup-and-dive-into-the-react-19-compiler-optimizations
Setup and Dive into the React 19 Compiler Optimizations
So first, we're going to add a ... add a compiler related rule to the set of rule that we have got here. So this is done. The second thing we need is to install the · 00:02:21 Babel plugin which is going to be the 1 that is going to fuel our application. So let's open Vite config TS and the thing that we want to replace is as we can see here usage with Vite is to modify the definition for React over here ...
Waku
waku.gg › guides › react-compiler
Enabling React Compiler in Waku — Waku
// waku.config.ts import { defineConfig } from 'waku/config'; import react from '@vitejs/plugin-react'; // make sure v5.0.1 or above is installed const ReactCompilerConfig = {}; export default defineConfig({ vite: { plugins: [ // cf. https://github.com/vitejs/vite-plugin-react/pull/537 react({ babel: { plugins: ['babel-plugin-react-compiler', ReactCompilerConfig], }, }), ], }, });
W3Schools
w3schools.com › REACT › DEFAULT.ASP
React Tutorial
React ES6 ES6 Classes ES6 Arrow Functions ES6 Variables ES6 Array map() ES6 Destructuring ES6 Spread Operator ES6 Modules ES6 Ternary Operator ES6 Template Strings React JSX Intro React JSX Expressions React JSX Attributes React JSX If Statements React Components React Class React Props React Props Destructuring React Props Children React Events React Conditionals React Lists React Forms React Forms Submit React Textarea React Select React Multiple Inputs React Checkbox React Radio React Portals React Suspense React CSS Styling React CSS Modules React CSS-in-JS React Router React Transitions React Forward Ref React HOC React Sass
CodeSandbox
codesandbox.io › p › sandbox › react-vite-fbr8s
react-vite
CodeSandbox is a cloud development platform that empowers developers to code, collaborate and ship projects of any size from any device in record time.