Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 519 Bytes

File metadata and controls

35 lines (24 loc) · 519 Bytes

babel-plugin-transform-react-inline-elements

Turn JSX elements into exploded React objects

Installation

$ npm install babel-plugin-transform-react-inline-elements

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-react-inline-elements"]
}

Via CLI

$ babel --plugins transform-react-inline-elements script.js

Via Node API

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