Skip to main content
Module

x/htm/html.tsx>h

Create a html response with JSX.
Go to Latest
namespace h
Re-export
import { h } from "https://deno.land/x/htm@0.1.2/html.tsx";
function h
Re-export
import { h } from "https://deno.land/x/htm@0.1.2/html.tsx";

Parameters

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

Type Parameters

P extends JSXInternal.HTMLAttributes<T>
T extends HTMLElement

Parameters

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

Type Parameters

P extends JSXInternal.SVGAttributes<T>
T extends HTMLElement

Parameters

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

Type Parameters

T extends HTMLElement

Parameters

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