This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

babel-plugin-react-constant-elements

1.0.3 • Public • Published

babel-plugin-react-constant-elements

Treat React JSX elements as value types and hoist them to the highest scope

Installation

$ npm install babel-plugin-react-constant-elements

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["react-constant-elements"]
}

Via CLI

$ babel --plugins react-constant-elements script.js

Via Node API

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i babel-plugin-react-constant-elements

    Weekly Downloads

    70,826

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • npm-support