preact-hyperscript icon indicating copy to clipboard operation
preact-hyperscript copied to clipboard

Hyperscript-like syntax for creating Preact elements

Results 5 preact-hyperscript issues
Sort by recently updated
recently updated
newest added

Hi, I'd like to add Preact-Hyperscript as a script on a CMS. I see in the [Codepen](https://codepen.io/queckezz/pen/XKkEyj?editors=1010) you're using wzrd.in "browserify as a service" to make a UMD bundle. Do...

Right now it seems I need to wrap a node in array in order to pass it: ```js // works div({className: 'new-style'}, [node]) // does not work! div({className: 'new-style'}, node)...

``` import {createElement as h} from 'preact-hyperscript' h('.class') // => creates an "undefined" tag ``` It should create "div" tag in this case

This doesn't work properly: ``` h('div.one', {class: {two: true}}, [...])` ``` It makes the class `[object Object] one`

I mostly have to do `import {createElement as h}`. It should export `createElement` as a default.