API Reference / @gtkx/react / createRoot
Variable: createRoot
constcreateRoot: (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?
The root element to render into; defaults to the shared rootElement.
Returns
A root with render and unmount methods.