@continuum-js/dom / Portal
Function: Portal()
Portal(
props):Node
Defined in: index.tsx:1058
Render children into another node (e.g. document.body), cleaning up on unmount. Children are eager here — a portal renders immediately.
tsx
<Portal mount={document.body}><Modal /></Portal>Parameters
props
children?
mount
Node
Returns
Node