UNPKG

start-dom-jsx

Version:

A simple way to use tsx syntax to create native dom elements using document.createElement.

15 lines (14 loc) 439 B
import type { JSX, ComponentChild } from './type'; /** * 对element 设置style * @param element * @param style */ export declare function setElementStyle(element: JSX.Element, style: Partial<CSSStyleDeclaration>): void; /** * 添加children * @param element * @param children */ export declare function applyChildren(element: JSX.Element, children: ComponentChild[]): void; export declare function isSvgTag(tag: string): boolean;