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