Skip to main content

Function: render()

render(element, appId, flags?): void

Defined in: react/src/render.ts:28

Renders a React element tree as a GTK application. This is the main entry point for GTKX applications.

Parameters

ParameterTypeDescription
elementReactNodeThe root React element to render
appIdstringThe application ID (e.g., "com.example.myapp")
flags?ApplicationFlagsOptional GIO application flags

Returns

void

Example

render(
<ApplicationWindow title="My App">
Hello, GTKX!
</ApplicationWindow>,
"com.example.myapp"
);