Skip to main content

vdom

ai-research-agent / editor/rendering/vdom

Functions

h()

Call Signature

function h<T, P, C>(
type,
props?,
ch?): T
Type Parameters
Type Parameter

T

P extends undefined | null | Props

C extends VChild | VChild[]

Parameters
ParameterType

type

(props, children) => T

props?

P

ch?

C

Returns

T

Call Signature

function h(
type,
props?,
ch?): VNode
Parameters
ParameterType

type

string

props?

null | Props

ch?

VChild | VChild[]

Returns

VNode


patch()

function patch(
dom,
vdom,
oldKids?): Node

Parameters

ParameterType

dom

Node

vdom

VNode | VNode[]

oldKids?

ChildNode[]

Returns

Node


recycleNode()

function recycleNode(dom): any

Parameters

ParameterType

dom

Node

Returns

any

Interfaces

H()

interface H<T, P, C>(
type,
props?,
ch?): T

Type Parameters

Type Parameter

T

P extends undefined | null | Props

C extends VChild | VChild[]

Parameters

ParameterType

type

(props, children) => T

props?

P

ch?

C

Returns

T

interface H(
type,
props?,
ch?): VNode

Parameters

ParameterType

type

string

props?

null | Props

ch?

VChild | VChild[]

Returns

VNode


Props

Indexable

[key: string]: any


VNode

Properties

children
children: VChild[];
key
key: any;
props
props: Props;
type
type: string;

Type Aliases

VChild

type VChild: VNode | string;

Variables

options

const options: object;

Type declaration

NameTypeDefault value

renderKeys

boolean

false


React

const React: object;

Type declaration

NameTypeDefault value

createElement

H

h