babel-plugin-transform-jsx-hyperdom-binding

> Turns binding attributes into hyperdom bindings

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-jsx-hyperdom-binding
002.0.06 years ago7 years agoMinified + gzip package size for babel-plugin-transform-jsx-hyperdom-binding in KB

Readme

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.