| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2018-01-05 | 1.0 kB | |
| WebComponents and JS API source code.tar.gz | 2018-01-05 | 1.6 MB | |
| WebComponents and JS API source code.zip | 2018-01-05 | 1.7 MB | |
| Totals: 3 Items | 3.3 MB | 0 | |
This release allows you to use asm-dom to render WebComponents from both Javascript and C++
:::js
// C++
VNode* vnode = h("hello-component",
Data(
Attrs {
{"name", "World"}
}
)
);
// javascript
const vnode = h("hello-component", {
name: 'World',
});
Also, there are some improvement to the JS APIs, now you don't need to use the special raw prop to set value, checked or callbacks anymore. asm-dom is now able to automatically recognize them:
:::js
// asm-dom >= 0.5.0
const vnode = h('input', {
className: 'input-class',
value: 'foo',
onchange: onChange,
});
// asm-dom < 0.5.0
const vnode = h('input', {
className: 'input-class',
raw: {
value: 'foo',
onchange: onChange,
},
});
Bugfixes
- asm-dom can now be used as a Javascript module without an
arraybuffer-loader
Breaking changes
None