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"] });