Create a new virtual element node.
The tag name for the element.
The children for the element, if any.
A new virtual element node for the given parameters.
The children may be string literals, other virtual nodes, null
, or
an array of those things. Strings are converted into text nodes, and
arrays are inlined as if the array contents were given as positional
arguments. This makes it simple to build up an array of children by
any desired means. null
child values are simply ignored.
A bound function for each HTML tag name is available as a static
function attached to the h()
function. E.g. h('div', ...)
is
equivalent to h.div(...)
.
The namespace for the h
function statics.
A type alias for the supported child argument types.
Generated using TypeDoc
The namespace for the
h
function statics.