Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
namespace h
import { h } from "https://deno.land/x/netzo@0.3.66/deps/preact.ts";
function h
import { h } from "https://deno.land/x/netzo@0.3.66/deps/preact.ts";

Parameters

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

Returns

VNode<JSXInternal.DOMAttributes<HTMLInputElement> & ClassAttributes<HTMLInputElement>>

Type Parameters

P extends JSXInternal.HTMLAttributes<T>
T extends HTMLElement

Parameters

type: keyof JSXInternal.IntrinsicElements
props: (ClassAttributes<T> & P) | null
...children: ComponentChildren[]

Returns

VNode<ClassAttributes<T> & P>

Type Parameters

P extends JSXInternal.SVGAttributes<T>
T extends HTMLElement

Parameters

type: keyof JSXInternal.IntrinsicElements
props: (ClassAttributes<T> & P) | null
...children: ComponentChildren[]

Returns

VNode<ClassAttributes<T> & P>

Type Parameters

T extends HTMLElement

Parameters

type: string
props: (ClassAttributes<T> & JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes) | null
...children: ComponentChildren[]

Returns

VNode<(ClassAttributes<T> & JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes) | null>

Parameters

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

Returns

VNode<Attributes & P>