hyperscript icon indicating copy to clipboard operation
hyperscript copied to clipboard

Support setting custom attributes

Open tusharmath opened this issue 8 years ago • 1 comments

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!

tusharmath avatar Aug 25 '16 12:08 tusharmath

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]

dominictarr avatar Aug 25 '16 23:08 dominictarr