Construct a new virtual text node.
The text content for the node.
Readonly contentThe text content for the node.
Readonly typeThe 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 plain text content.
Notes
User code will not typically create a
VirtualTextnode directly. Instead, theh()function will be used to create an element tree.