Portal

Typedefs

props
Props for [Portal](#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://reactjs.org/docs/portals.html
Parameters

Name Type Description
children ReactNodeLike React child elements
container Object The DOM node to render the children in

Props for Portal

Properties

Name Type Description
children ReactNodeLike any elements that will be child elements inside the modal.
container Object the container element (a DOM element) where the children will be rendered.

Source Code: pwa-studio/packages/venia-ui/lib/components/Portal/portal.js