Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VirtualElement

A virtual node which represents an HTML element.

Notes

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

Hierarchy

  • VirtualElement

Index

Constructors

Properties

Constructors

constructor

Properties

attrs

The attributes for the element.

children

children: ReadonlyArray<VirtualNode>

The children for the element.

tag

tag: string

The tag name for the element.

type

type: "element" = "element"

The type of the node.

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

Generated using TypeDoc