$ npm install babel-plugin-syntax-jsx
.babelrc
{ "plugins": ["syntax-jsx"] }
$ babel --plugins syntax-jsx script.js
require("babel-core").transform("code", { plugins: ["syntax-jsx"] });