UNPKG

nexora

Version:

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

10 lines (9 loc) 436 B
import { DOMElement, VNode } from '../../../core'; /** * Update an existing VNode in the DOM * @description - This function is used to update an existing VNode in the DOM. * @param container - The container element to update * @param oldVNode - The old VNode to update * @param newVNode - The new VNode to update */ export declare function patch(container: DOMElement, oldVNode: VNode | VNode[], newVNode: VNode | VNode[]): void;