babel-plugin-transform-react-jsx-compat
Turn JSX into React Pre-0.12 function calls
Example
In
var profile = <div> <img src="avatar.png" class="profile" /> <h3>userfirstName userlastName</h3></div>;
Out
var profile = ReactDOM;
Installation
npm install --save-dev babel-plugin-transform-react-jsx-compat
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel --plugins transform-react-jsx-compat script.js
Via Node API
;