Skip to content

API Reference / @gtkx/react / index / createPortal

Function: createPortal() ​

createPortal(children, container, key?): ReactPortal

Defined in: packages/react/src/reconciler/root.ts:130

Renders children into a container other than the surrounding tree.

Parameters ​

children ​

ReactNode

container ​

Container

The GObject to render into, or rootElement to render at the top level.

key? ​

string

Returns ​

ReactPortal