Node

constructor(type: String, props: NodeProps? = null, children: List<ChildNode>? = null, extras: Map<String, <Error class: unknown class>> = emptyMap())

Parameters

type

element type: a built-in (div, img, p, h1h6, span) or a custom component type string the renderer registers a component for.

props

this node's prop object, or null when absent.

children

child nodes, or null when absent (distinct from an empty list).

extras

unknown sibling keys preserved verbatim; must not contain a reserved key.