babel-plugin-transform-react-constant-elements
v6.23.0 babel-plugin
babel-plugin-transform-react-constant-elements
Treat React JSX elements as value types and hoist them to the highest scope
Installation
$ npm install babel-plugin-transform-react-constant-elements
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["transform-react-constant-elements"]
}
Via CLI
$ babel --plugins transform-react-constant-elements script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["transform-react-constant-elements"]
});
npm i [email protected]
Source Code
github.com/babel/babel/tree/...Metadata
- MIT
- Whatever
- Unknown
- released 2/13/2017