@lynx-js/react / createPortal

函数: createPortal()

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

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

参数

范围类型
vnodeComponentChild
containerNodesRef

返回

useErrorBoundary<any> | null

定义于

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

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。