UNPKG

nexora

Version:

A lightweight, production-ready JavaScript library for building user interfaces, supporting JSX.

11 lines (10 loc) 558 B
import { DOMElement, VNode } from '../../../core'; /** * ## Render ## * @description - This function is used to render a VNode into the DOM. * - Render the given VNode into the given container. * - If the container already has a VNode, patch the container with the new VNode. * - If the container does not have a VNode, mount the new VNode into the container. * - If the container has a VNode, but the new VNode is different, unmount the old VNode and mount the new VNode. */ export declare function render(vnode: VNode, container: DOMElement): void;