Skip to content

Documentation / @ripl/dom / VNode

Interface: VNode<TElement>

Defined in: dom/src/vdom.ts:2

A virtual DOM node representing an element in the reconciled tree.

Type Parameters

Type ParameterDefault type
TElementunknown

Properties

PropertyTypeDescriptionDefined in
childrenVNode<TElement>[]Child virtual nodes in render order.dom/src/vdom.ts:10
element?TElementOptional source element whose state is applied to the DOM node.dom/src/vdom.ts:8
idstringUnique identifier used to match this node against a live DOM element.dom/src/vdom.ts:4
tagstringTag name used when creating the backing DOM element.dom/src/vdom.ts:6