Documentation / @ripl/dom / createVNode
Function: createVNode()
createVNode<
TElement>(id,tag,children?,element?):VNode<TElement>
Defined in: dom/src/vdom.ts:154
Creates a new virtual node with the given id, tag, optional children, and optional backing element.
Type Parameters
| Type Parameter | Default type |
|---|---|
TElement | unknown |
Parameters
| Parameter | Type | Default value |
|---|---|---|
id | string | undefined |
tag | string | undefined |
children | VNode<TElement>[] | [] |
element? | TElement | undefined |
Returns
VNode<TElement>