npm.devtool.tech
👏 You can access babel-plugin-transform-react-constant-elements package with using babelPluginTransformReactConstantElements variable in browser devtools!
Treat React JSX elements as value types and hoist them to the highest scope

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

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"]
});
🔎Explore Package🔎CDN Script

Score

Popularity46/100
Quality89/100
Maintenance56/100