Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 388 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 388 Bytes

babel-preset-react

Babel preset for all React plugins.

Install

$ npm install --save-dev babel-preset-react

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["react"]
}

Via CLI

$ babel script.js --presets react 

Via Node API

require("babel-core").transform("code", {
  presets: ["react"]
});