API Reference / @gtkx/react / index / Root
Type Alias: Root
Root =
object
Defined in: reconciler/root.d.ts:23
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:28
Mounts an element tree into the container, or updates the tree already mounted there. Rendering null unmounts the container instead.
Parameters
element
ReactNode
Returns
void
unmount
unmount: () =>
void
Defined in: reconciler/root.d.ts:30
Unmounts the rendered tree and runs its effect cleanups.
Returns
void