hyperscript
hyperscript copied to clipboard
Support setting custom attributes
as of now there is no way to do something like this —
<x-my-web-component something-awesome="whish this worked!" />
Can hyperscript support custom attributes as well? This is extremely useful when writing webcomponents.
Thanks!
you should be able to do that since I merged this: https://github.com/dominictarr/hyperscript/pull/33
h('x-my-web-component', {attrs: {'something-awesome': 'wish this worked!'}})
with [email protected]