babel-plugin-transform-jsx-list

0.1.2 • Public • Published

babel-plugin-transform-jsx-list

Support of transform jsx list directive.

Example

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>)}

Installation

$ npm install babel-plugin-transform-jsx-condition

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-jsx-list"]
}

Via CLI

$ babel --plugins transform-jsx-list script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-jsx-list"]
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.2330latest
0.1.2-00beta

Version History

VersionDownloads (Last 7 Days)Published
0.1.2330
0.1.2-00
0.1.11
0.1.020

Package Sidebar

Install

npm i babel-plugin-transform-jsx-list

Weekly Downloads

351

Version

0.1.2

License

none

Unpacked Size

7.09 kB

Total Files

12

Last publish

Collaborators

  • zeroling