babel-plugin-update-react

0.1.1 • Public • Published

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

/babel-plugin-update-react/

    Package Sidebar

    Install

    npm i babel-plugin-update-react

    Weekly Downloads

    1

    Version

    0.1.1

    License

    none

    Unpacked Size

    133 kB

    Total Files

    16

    Last publish

    Collaborators

    • smallcatcat