JavaScript compiler that compiles ES2015+ code into backwards compatible JavaScript for older versions of browsers
Babel is a free and open-source JavaScript transcompiler that is mainly used to convert ECMAScript 2015+ (ES6+) code into backwards-compatible JavaScript code that can be run by older JavaScript engines. It allows … Wikipedia
Factsheet
Original author Sebastian McKenzie
Developer Contributors
Release September 28, 2014; 11 years ago (2014-09-28)
Original author Sebastian McKenzie
Developer Contributors
Release September 28, 2014; 11 years ago (2014-09-28)
🌐
Babel
babeljs.io › presets › @babel/preset-react
@babel/preset-react · Babel
Though the JSX spec allows this, it is disabled by default since React's JSX does not currently have support for it. ... Enables @babel/plugin-transform-react-pure-annotations.
🌐
npm
npmjs.com › package › @babel › preset-react
@babel/preset-react - npm
June 17, 2026 - Babel preset for all React plugins.. Latest version: 8.0.1, last published: 16 days ago. Start using @babel/preset-react in your project by running `npm i @babel/preset-react`. There are 9420 other projects in the npm registry using @babel/preset-react.
      » npm install @babel/preset-react
    
Published   Jun 17, 2026
Version   8.0.1
🌐
npm
npmjs.com › package › babel-preset-react
babel-preset-react - npm
April 7, 2017 - Babel preset for all React plugins.. Latest version: 6.24.1, last published: 9 years ago. Start using babel-preset-react in your project by running `npm i babel-preset-react`. There are 4906 other projects in the npm registry using babel-preset-react.
      » npm install babel-preset-react
    
Published   Apr 07, 2017
Version   6.24.1
🌐
Babel
babeljs.io › presets
Presets · Babel
@babel/preset-react for React · @babel/preset-flow for Flow · If you aren't using Babel directly, the framework you are using may have its own configuration for you to use or extend. Many other community maintained presets are available on npm! Next.js | Nuxt.js | Parcel | Jest | Gatsby ·
🌐
Medium
medium.com › @ns-tech-learn › how-to-install-babel-and-config-in-react-js-project-39c953527560
How to install Babel and Config in React JS Project? | by sharath .v | Medium
October 5, 2023 - This configuration file tells Babel to use the specified presets (`@babel/preset-env` and `@babel/preset-react`) when transpiling your code.
🌐
npm
npmjs.com › package › babel-preset-react-app
babel-preset-react-app - npm
February 15, 2025 - This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled. Make sure you have a .flowconfig file at the root directory. You can also use the flow option on .babelrc:
      » npm install babel-preset-react-app
    
Published   Feb 15, 2025
Version   10.1.0
🌐
Snyk
snyk.io › advisor › @babel/preset-react › @babel/preset-react code examples
Top 5 @babel/preset-react Code Examples | Snyk
We shouldn't rely on magic to try and shrink it. useBuiltIns: false, // Do not transform modules to CJS modules: false, // Exclude transforms that make all code slower exclude: ['transform-typeof-symbol'], }, ], [ require('@babel/preset-react').default, { // Adds component stack to warning messages // Adds __self attribute to JSX which React will use for some warnings development: isEnvDevelopment || isEnvTest, // Will use the native built-in instead of trying to polyfill // behavior for any plugins that require one.
Find elsewhere
🌐
Babeljs
babeljs.cn › docs › babel-preset-react
@babel/preset-react · Babel 中文网
You can also check out the React Getting Started page ... { "presets": [ [ "@babel/preset-react", { "pragma": "dom", // default pragma is React.createElement "pragmaFrag": "DomFrag", // default is React.Fragment "throwIfNamespace": false // defaults to true } ] ] }
🌐
npm
npmjs.com › package › @react-native › babel-preset
react-native/babel-preset
June 9, 2026 - Babel preset for React Native applications. Latest version: 0.86.0, last published: a month ago. Start using @react-native/babel-preset in your project by running `npm i @react-native/babel-preset`. There are 45 other projects in the npm registry using @react-native/babel-preset.
      » npm install @react-native/babel-preset
    
Published   Jun 09, 2026
Version   0.86.0
🌐
GeeksforGeeks
geeksforgeeks.org › reactjs › reactjs-babel-introduction
ReactJS Babel Introduction - GeeksforGeeks
Babel works with ReactJS by converting JSX and modern JavaScript code into browser-compatible JavaScript before the application runs. Transforms JSX Syntax: Converts JSX elements into standard JavaScript function calls that browsers can understand.
Published   June 25, 2026
🌐
Scaler
scaler.com › home › topics › react › babel-preset-react
babel-preset-react - Scaler Topics
May 4, 2023 - Make React function calls from JSX. The automatic runtime function was added in version 7.9.0. The functions that JSX compiles to will be automatically imported when this runtime is enabled. ... All JSX Elements should have a __source prop. Included in @babel/preset-react is this plugin.
🌐
Jakoblind
blog.jakoblind.no › babel-preset-env
What is @babel/preset-env and why do I need it? | blog.jakoblind.no
@babel/preset-react · @babel/preset-typescript · Every preset is its own NPM dependency that you need to install and configure. Ok, now you are finally ready to learn about babel-preset-env. Let’s convert you mini-code base to use babel-preset-env instead of @babel/plugin-transform-arrow-functions ·