Skip to main content
Module

x/htm/mod.tsx>createElement

Create a html response with JSX.
Go to Latest
namespace createElement
import { createElement } from "https://deno.land/x/htm@0.1.1/mod.tsx";
function createElement
import { createElement } from "https://deno.land/x/htm@0.1.1/mod.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[]