![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | lib/ | 2 years ago | - | |
![]() | package.json | 2 years ago | 1.3K | |
![]() | README.md | 8 years ago | 369 |
$ npm install babel-plugin-syntax-jsx
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-jsx"]
}
$ babel --plugins syntax-jsx script.js
require("babel-core").transform("code", {
plugins: ["syntax-jsx"]
});