Skip to content

API Reference / @gtkx/react / index / createPortal

Variable: createPortal ​

const createPortal: (children, container, key?) => ReactPortal

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

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

Released under the MPL-2.0 License.