babel-plugin-transform-jsx-hyperdom-binding

2.0.0 • Public • Published

babel-plugin-transform-jsx-hyperdom-binding npm version npm Build Status

Turns binding attributes into hyperdom bindings

Example

In

<input type="text" binding="item[n].method().name" />

Out

hyperdom.jsx("input", { type: "text", binding: [item[n].method(), "name"] });

Installation

npm install --save-dev babel-plugin-transform-jsx-hyperdom-binding

# for babel 6
npm install --save-dev babel-plugin-transform-jsx-hyperdom-binding@1.5.0

Usage

.babelrc

{
  "plugins": [
    ["transform-react-jsx", {
      "pragma": "hyperdom.jsx"
    }],
    "babel-plugin-transform-jsx-hyperdom-binding"
  ]
}

We're Hiring!

Featurist provides full stack, feature driven development teams. Want to join us? Check out our career opportunities.

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-transform-jsx-hyperdom-binding

Weekly Downloads

155

Version

2.0.0

License

ISC

Unpacked Size

5.87 kB

Total Files

5

Last publish

Collaborators

  • refractalize