babel-plugin-transform-jsx-list
Support of transform jsx condition directive.
Last updated 5 years ago by zeroling .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install babel-plugin-transform-jsx-list 
SYNC missed versions from official npm registry.

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"]
});

Current Tags

  • 0.1.2-0                                ...           beta (5 years ago)
  • 0.1.2                                ...           latest (5 years ago)

4 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.2-0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 4
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)

© 2010 - cnpmjs.org x YWFE | Home | YWFE