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.
Parameters
Section titled “Parameters”element
Section titled “element”ReactNode
The root React element to render.
rootNode
Section titled “rootNode”DOMNode
The host node to mount into (e.g. app.activeScreen).
Returns
Section titled “Returns”any