Support of transform jsx condition directive.
npm install babel-plugin-transform-jsx-conditionSupport of transform jsx condition directive.
In
``jsx`
// input code
Out
`jsx`
{
createCondition([
[
() => condition,
() =>
],
[
() => another,
() =>
],
[
() => true,
() =>
],
])
}
`sh`
$ npm install babel-plugin-transform-jsx-condition
.babelrc
`json`
{
"plugins": ["transform-jsx-condition"]
}
`sh`
$ babel --plugins transform-jsx-condition script.js
`javascript``
require("babel-core").transform("code", {
plugins: ["transform-jsx-condition"]
});