@activelylearn/material-ui
Version:
Material-UI's workspace package
18 lines (12 loc) • 489 B
Markdown
components: Portal
# Portal
The portal component renders its children into a new "subtree"
outside of current component hierarchy.
The children of the portal component will be appended to the `container` specified.
The component is used internally by the [`Modal`](/utils/modals) component.
On the server, the content won't be rendered.
You have to wait for the client side reconciliation to see the children.
## Simple Portal
{{"demo": "pages/utils/portal/SimplePortal.js"}}