Skip to content

API Reference / @gtkx/react / createRoot

Variable: createRoot

const createRoot: (container?) => Root

Defined in: react/dist/reconciler/render.d.ts:16

Creates a render root for a container, wiring reconciler error handling to the container's signal store.

Parameters

container?

RootElement

The root element to render into; defaults to the shared rootElement.

Returns

Root

A root with render and unmount methods.

Released under the MPL-2.0 License.