tsx-dom
Version:
A simple way to use tsx syntax to create native dom elements using document.createElement.
5 lines (4 loc) • 316 B
TypeScript
import type { ComponentAttributes, ComponentChild, FC, RefType } from "./types";
export declare function createElement(tag: string | FC, attrs: null | ComponentAttributes, ...children: ComponentChild[]): JSX.Element;
export declare const h: typeof createElement;
export declare const createRef: <T>() => RefType<T>;