$ npm install babel-plugin-transform-react-inline-elements
Turn JSX elements into exploded React objects
$ npm install babel-plugin-transform-react-inline-elements
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-react-inline-elements"]
}
$ babel --plugins transform-react-inline-elements script.js
require("babel-core").transform("code", {
plugins: ["transform-react-inline-elements"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE