🌐
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).

🌐
RedwoodSDK
docs.rwsdk.com › guides › optimize › react-compiler
React Compiler | RedwoodSDK
Use React 19, Vite 6+, and the latest RedwoodSDK. The compiler works for both client and server components; no code changes are required.
🌐
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
🌐
Vite
vite.dev › guide
Getting Started | Vite
See create-vite for more details on each supported template: vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts, solid, solid-ts, qwik, qwik-ts.
🌐
Victorlillo
victorlillo.dev › blog › react-typescript-vite-component-library
Build a React component library with TypeScript and Vite - Víctor Lillo
September 28, 2025 - Learn with this guide every necessary step to build and publish a React component library with TypeScript, Vite, Storybook, PostCss and Testing with Vitest.
Find elsewhere
🌐
freeCodeCamp
freecodecamp.org › news › react-compiler-complete-guide-react-19
How to Use React Compiler – A Complete Guide
August 27, 2024 - React compiler is a build-time tool that you need to configure with your React 19 project explicitly using the configuration options provided by the React tools ecosystem. For example, if you are using Vite to create your React application, ...
🌐
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
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
🌐
Nx
nx.dev › docs › technologies › react › guides › react-compiler
React Compiler with Nx | Nx
Check the React Compiler usage docs for all support setups, such as Vite, Remix, etc.
🌐
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.
🌐
React
react.dev › blog › 2025 › 10 › 07 › react-compiler-1
React Compiler v1.0 – React
Expo SDK 54 and up has the compiler enabled by default, so new apps will automatically be able to take advantage of the compiler from the start. ... Vite and Next.js users can choose the compiler enabled templates in create-vite and create-next-app.