babel-plugin-transform-jsx-hyperdom-binding
v2.0.0
Published
> Turns binding attributes into hyperdom bindings
Downloads
705
Readme
babel-plugin-transform-jsx-hyperdom-binding
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 [email protected]
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.