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>>;
function h<P extends JSXInternal.HTMLAttributes<T>, T extends HTMLElement>(
props: (ClassAttributes<T> & P) | null,
...children: ComponentChildren[],
): VNode<ClassAttributes<T> & P>;
function h<P extends JSXInternal.SVGAttributes<T>, T extends HTMLElement>(
props: (ClassAttributes<T> & P) | null,
...children: ComponentChildren[],
): VNode<ClassAttributes<T> & P>;
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>;
§
h(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]
§
h<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

§
h<P extends JSXInternal.SVGAttributes<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

§

§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>
[src]

§Type Parameters

§Parameters

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

§Return Type