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

h

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

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

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

§Return Type

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

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

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

§Return Type

§
VNode<(ClassAttributes<T> & P) | null>
[src]
§

§Type Parameters

§
T extends HTMLElement
[src]

§Parameters

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

§Type Parameters

§Parameters

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

§Return Type

§
VNode<(Attributes & P) | null>
[src]