API Reference / @gtkx/react / index / createRoot
Function: createRoot()
createRoot(
container?,options?):Root
Defined in: packages/react/src/reconciler/root.ts:96
Creates a render root for a GTKX application. Uncaught render errors are rethrown, errors caught by an error boundary are logged, and errors React recovered from by rendering again are logged.
Parameters
container?
Container = rootElement
The GObject to render into; defaults to the shared rootElement, which holds no object.
options?
RootOptions = {}
Error callbacks and the useId prefix; each callback left out falls back to the behavior above.