Skip to content

Documentation / @ripl/dom / createVNode

Function: createVNode() ​

createVNode<TElement>(id, tag, children?, element?): VNode<TElement>

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

Creates a new virtual node with the given id, tag, optional children, and optional backing element.

Type Parameters ​

Type ParameterDefault type
TElementunknown

Parameters ​

ParameterTypeDefault value
idstringundefined
tagstringundefined
childrenVNode<TElement>[][]
element?TElementundefined

Returns ​

VNode<TElement>