UNPKG

@razen-core/zenweb

Version:

A minimalist TypeScript framework for building reactive web applications with no virtual DOM

26 lines 793 B
/** * ZenWeb Virtual DOM Implementation * Efficient diffing and patching algorithm */ import type { VNode, VNodeChild, VNodeProps } from './types.js'; /** * Create a virtual node */ export declare function h(type: string | Function, props: VNodeProps | null, ...children: VNodeChild[]): VNode; /** * Create a text virtual node */ export declare function createTextVNode(text: string | number): VNode; /** * Mount a virtual node to the DOM */ export declare function mount(vnode: VNode, container: HTMLElement): void; /** * Patch (update) a DOM element with new virtual node */ export declare function patch(oldVNode: VNode, newVNode: VNode): void; /** * Unmount a virtual node from the DOM */ export declare function unmount(vnode: VNode): void; //# sourceMappingURL=vdom.d.ts.map