← App contract

app.render

app/main
app.render() -> UI.Node

Returns the complete current interface as exactly one UI.Screen root.

When to use it

Implement render in every application entry module; it is the required source of the complete current host-neutral UI tree.

Parameters

No parameters.

Returns

UI.Node — exactly one UI.Screen root.

Focused example

local function render(): UI.Node
    return UI.Screen {
        id = "app",
    }
end

Complete inventory

View all pages in App contract
Next: app.handle →