Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/deps/preact.ts>createElement

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
namespace createElement
import { createElement } from "https://deno.land/x/netzo@0.4.40/deps/preact.ts";
function createElement
import { createElement } from "https://deno.land/x/netzo@0.4.40/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[]

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

Returns

VNode<ClassAttributes<T> & JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes>