babel-preset-react
Babel preset for all React plugins.
Last updated 2 years ago by hzoo .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install babel-preset-react 
SYNC missed versions from official npm registry.

babel-preset-react

Babel preset for all React plugins.

This preset includes the following plugins/presets:

Install

You can also check out the React Getting Started page

For more info, check out the setup page on the cli and the usage docs.

Install the CLI and this preset

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

Make a .babelrc config file with the preset

echo '{ "presets": ["react"] }' > .babelrc

Create a file to run on

echo '<h1>Hello, world!</h1>' > index.js

View the output

./node_modules/.bin/babel index.js

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["react"]
}

Via CLI

babel script.js --presets react 

Via Node API

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

Current Tags

  • 6.24.1                                ...           latest (2 years ago)
  • 7.0.0-beta.3                                ...           next (a year ago)

37 Versions

  • 7.0.0-beta.3                                ...           a year ago
  • 7.0.0-beta.2                                ...           a year ago
  • 7.0.0-beta.1                                ...           a year ago
  • 7.0.0-beta.0                                ...           a year ago
  • 7.0.0-alpha.20                                ...           a year ago
  • 7.0.0-alpha.19                                ...           a year ago
  • 7.0.0-alpha.18                                ...           a year ago
  • 7.0.0-alpha.17                                ...           a year ago
  • 7.0.0-alpha.16                                ...           a year ago
  • 7.0.0-alpha.15                                ...           a year ago
  • 7.0.0-alpha.14                                ...           a year ago
  • 7.0.0-alpha.12                                ...           a year ago
  • 7.0.0-alpha.11                                ...           a year ago
  • 7.0.0-alpha.10                                ...           a year ago
  • 7.0.0-alpha.9                                ...           2 years ago
  • 7.0.0-alpha.8                                ...           2 years ago
  • 6.24.1                                ...           2 years ago
  • 7.0.0-alpha.7                                ...           2 years ago
  • 7.0.0-alpha.3                                ...           2 years ago
  • 7.0.0-alpha.1                                ...           2 years ago
  • 6.23.0                                ...           2 years ago
  • 6.22.0                                ...           2 years ago
  • 6.16.0                                ...           2 years ago
  • 6.11.1                                ...           2 years ago
  • 6.11.0                                ...           2 years ago
  • 6.5.0-1                                ...           3 years ago
  • 6.5.0                                ...           3 years ago
  • 6.3.13                                ...           3 years ago
  • 6.2.4                                ...           3 years ago
  • 6.1.18                                ...           3 years ago
  • 6.1.17                                ...           3 years ago
  • 6.1.4                                ...           3 years ago
  • 6.1.2                                ...           3 years ago
  • 6.0.15                                ...           3 years ago
  • 6.0.14                                ...           3 years ago
  • 6.0.12                                ...           3 years ago
  • 6.0.2                                ...           3 years ago
Downloads
Today 118
This Week 7,525
This Month 27,205
Last Day 3,856
Last Week 14,611
Last Month 51,151
Dev Dependencies (0)
None
Dependents (5338)

Copyright 2014 - 2017 © taobao.org |