@lynx-js/react / createPortal

Function: createPortal()

function createPortal(vnode: ComponentChild, container: NodesRef): useErrorBoundary<any> | null

Create a Portal to continue rendering the vnode tree at a different DOM node.

Parameters

ParameterType
vnodeComponentChild
containerNodesRef

Returns

useErrorBoundary<any> | null

Defined in

@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts:9

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.