createElement
Callable
- createElement<K>(type: K, props?: DomIntrinsicElements[K], children?: Children): Template
- createElement<T>(...args: [type: new () => T, ...({} extends JsxProps<T> ? [props?: JsxProps<T>] : [props: JsxProps<T>])[], children?: Children]): Template
- createElement<P>(...args: [type: FunctionalComponent<P>, ...({} extends P ? [props?: P] : [props: P])[], ...(P extends { children?: unknown } ? undefined extends P<P>[children] ? [children?: P<P>[children]] : [children: P<P>[children]] : [])[]]): Template
Type parameters
- K: string
Creates a template based on the given component type.