babel-preset-hyperdom
v2.0.0
Published
> Babel presets for hyperdom: JSX, binding syntax
Downloads
911
Readme
babel-preset-hyperdom
Babel presets for hyperdom: JSX, binding syntax
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-preset-hyperdom
For babel 6
npm install --save-dev [email protected]
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["hyperdom"]
}
Via CLI
babel --presets hyperdom script.js
Via Node API
require("babel-core").transform("code", {
presets: ["hyperdom"]
});
We're Hiring!
Featurist provides full stack, feature driven development teams. Want to join us? Check out our career opportunities.