snabbdom
Version:
A virtual DOM library with focus on simplicity, modularity, powerful features and performance.
9 lines (8 loc) • 471 B
TypeScript
import { VNode, VNodeData } from './vnode';
export declare function h(sel: string): VNode;
export declare function h(sel: string, data: VNodeData): VNode;
export declare function h(sel: string, text: string): VNode;
export declare function h(sel: string, children: Array<VNode>): VNode;
export declare function h(sel: string, data: VNodeData, text: string): VNode;
export declare function h(sel: string, data: VNodeData, children: Array<VNode>): VNode;
export default h;