0.1.1 • Published 6 years ago
babel-plugin-update-react v0.1.1
babel-plugin-update-react
update react from 15.x to 16.x
Example
In
// input codeOut
"use strict";
// output codeInstallation
$ npm install babel-plugin-update-reactUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["update-react"]
}Via CLI
$ babel --plugins update-react script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["update-react"]
});