nexora
Version:
A lightweight, production-ready JavaScript library for building user interfaces, supporting JSX.
11 lines (10 loc) • 499 B
TypeScript
import { DOMElement, DOMNode, VNode } from '../../../core';
/**
* Mount a VNode to the DOM
* @description - This function is used to mount a VNode to the DOM.
* @param vnode - The VNode to mount
* @param container - The container element to mount the VNode in
* @param nextSibling - The next sibling DOM node to mount the VNode after
* @returns The DOM node for the VNode
*/
export declare function mount(vnode: VNode | VNode[], container: DOMElement, nextSibling?: DOMNode | null): DOMNode;