Skip to content

render

render(element, rootNode): any

Defined in: react/reconciler.ts:18

Mount a React element onto a ztui node (typically app.activeScreen) — the analogue of createRoot().render. Call once, then start the loop with App.run.

ReactNode

The root React element to render.

DOMNode

The host node to mount into (e.g. app.activeScreen).

any