node

fun node(type: String, block: NodeBuilder.() -> Unit = {}): <Error class: unknown class>

Builds a standalone Node of the given type via NodeBuilder.

Return

the built Node.

Parameters

type

element type: a built-in (div, img, p, h1h6, span) or a custom component type.

block

configures the node (props, children); defaults to an empty body.