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
| Parameter | Type | Description |
|---|---|---|
element | ReactNode | The root React element to render |
appId | string | The application ID (e.g., "com.example.myapp") |
flags? | ApplicationFlags | Optional GIO application flags |
Returns
void
Example
render(
<ApplicationWindow title="My App">
Hello, GTKX!
</ApplicationWindow>,
"com.example.myapp"
);