preact-hyperscript
preact-hyperscript copied to clipboard
createElement should use `div` tag when no tagname is specified
import {createElement as h} from 'preact-hyperscript'
h('.class') // => creates an "undefined" tag
It should create "div" tag in this case
Whats the benefit over doing the following?
import { div } from 'preact-hyperscript'
div('.class', ...)