Class VirtualText

A virtual node which represents plain text content.

Notes

User code will not typically create a VirtualText node directly. Instead, the h() function will be used to create an element tree.

Hierarchy

  • VirtualText

Constructors

Properties

Constructors

Properties

content: string

The text content for the node.

type: "text" = ...

The type of the node.

This value can be used as a type guard for discriminating the VirtualNode union type.

Generated using TypeDoc