Construct a new virtual element node.
The element tag name.
The element attributes.
The element children.
The attributes for the element.
The children for the element.
The tag name for the element.
The type of the node.
This value can be used as a type guard for discriminating the
VirtualNode
union type.
Generated using TypeDoc
A virtual node which represents an HTML element.
Notes
User code will not typically create a
VirtualElement
node directly. Instead, theh()
function will be used to create an element tree.