Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

createElement

function createElement(
type: "input",
props: (JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>) | null,
...children: ComponentChildren[],
): VNode<JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>>;
function createElement<P extends JSXInternal.HTMLAttributes<T>, T extends HTMLElement>(
props: (ClassAttributes<T> & P) | null,
...children: ComponentChildren[],
): VNode<ClassAttributes<T> & P>;
function createElement<P extends JSXInternal.SVGAttributes<T>, T extends HTMLElement>(
props: (ClassAttributes<T> & P) | null,
...children: ComponentChildren[],
): VNode<ClassAttributes<T> & P>;
function createElement<T extends HTMLElement>(
type: string,
...children: ComponentChildren[],
): VNode<ClassAttributes<T> & JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes>;
function createElement<P>(
type: ComponentType<P> | string,
props: (Attributes & P) | null,
...children: ComponentChildren[],
): VNode<P>;
§
createElement(type: "input", props: (JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>) | null, ...children: ComponentChildren[]): VNode<JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>>
[src]

§Parameters

§
type: "input"
[src]
§
props: (JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>) | null
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type

§
VNode<JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>>
[src]
§
createElement<P extends JSXInternal.HTMLAttributes<T>, T extends HTMLElement>(type: keyof JSXInternal.IntrinsicElements, props: (ClassAttributes<T> & P) | null, ...children: ComponentChildren[]): VNode<ClassAttributes<T> & P>
[src]

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

§
props: (ClassAttributes<T> & P) | null
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type

§
createElement<P extends JSXInternal.SVGAttributes<T>, T extends HTMLElement>(type: keyof JSXInternal.IntrinsicSVGElements, props: (ClassAttributes<T> & P) | null, ...children: ComponentChildren[]): VNode<ClassAttributes<T> & P>
[src]

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

§
props: (ClassAttributes<T> & P) | null
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type

§
createElement<P>(type: ComponentType<P> | string, props: (Attributes & P) | null, ...children: ComponentChildren[]): VNode<P>
[src]

§Type Parameters

§Parameters

§
type: ComponentType<P> | string
[src]
§
props: (Attributes & P) | null
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type