Skip to content

API Reference / @gtkx/react / index / createRoot

Variable: createRoot

const createRoot: (container?) => Root

Defined in: reconciler/root.d.ts:35

Creates a render root for a GTKX application. Uncaught render errors are rethrown and errors caught by an error boundary are logged.

Parameters

container?

Container

The GObject to render into; defaults to the shared rootElement, which holds no object.

Returns

Root

Released under the MPL-2.0 License.