0.1.1 • Published 5 years ago

babel-plugin-update-react v0.1.1

Weekly downloads
8
License
-
Repository
github
Last release
5 years ago

babel-plugin-update-react

update react from 15.x to 16.x

Example

In

// input code

Out

"use strict";

// output code

Installation

$ npm install babel-plugin-update-react

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["update-react"]
}

Via CLI

$ babel --plugins update-react script.js

Via Node API

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