preact-hyperscript
preact-hyperscript copied to clipboard
Classnames both as string (with tagname), and as "class" attribute
This doesn't work properly:
h('div.one', {class: {two: true}}, [...])`
It makes the class [object Object] one
Implementing this would add a significant code overhead I think. You can take a stab at a PR if you want.
This should work just fine though:
h('div', { class: ['one', { two: true }] }, [...]
@queckezz https://github.com/queckezz/parse-hyperscript/pull/1