Support of transform jsx list directive.
In
<View x-for={(item, key) in foo}>key: {key}, item: {item}</View>Out
{createList.call(this, foo, (item, key) => <View>key: {key}, item: {item}</View>)}$ npm install babel-plugin-transform-jsx-condition.babelrc
{
"plugins": ["transform-jsx-list"]
}$ babel --plugins transform-jsx-list script.jsrequire("babel-core").transform("code", {
plugins: ["transform-jsx-list"]
});