Typedefs
[props]
Props for Portal
A component that renders content into a DOM node that exists outside of the DOM hierarchy of the parent component.
Returns: React.ReactPortal — The React portal.
See: https://legacy.reactjs.org/docs/portals.html
Parameters
Name
Type
Description
children
ReactNodeLikeReact child elements
container
ObjectThe DOM node to render the children in
Props for Portal
Properties
Name
Type
Description
children
ReactNodeLikeany elements that will be child elements inside the modal.
container
Objectthe container element (a DOM element) where the children will be rendered.
Source Code: pwa-studio/packages/venia-ui/lib/components/Portal/portal.js