Skip to content

API Reference / @gtkx/react / index / Root

Type Alias: Root

Root = object

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

The object createRoot returns: it renders an element tree into a container and can tear it down.

Properties

render

render: (element) => void

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

Mounts an element tree into the container, or updates the tree already mounted there.

Parameters

element

ReactNode

Returns

void


unmount

unmount: () => void

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

Unmounts the rendered tree and runs its effect cleanups.

Returns

void

Released under the MPL-2.0 License.