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

§Parameters

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

§Return Type

§
createElement<P extends JSXInternal.HTMLAttributes<T>, T extends HTMLElement>(type: keyof JSXInternal.IntrinsicElements, props: (ClassAttributes<T> & P) | null, ...children: ComponentChildren[]): VNode<any>
[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.IntrinsicElements, props: (ClassAttributes<T> & P) | null, ...children: ComponentChildren[]): VNode<any>
[src]

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

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

§Return Type

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

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

§
type: string
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type

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

§Type Parameters

§Parameters

§
props: (Attributes & P) | null
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type