Portal
The portal component renders its children into a new "subtree" outside of current component hierarchy.
- 📦 1.5 kB gzipped
The children of the portal component will be appended to the container
specified.
The component is used internally by the Modal
and Popper
components.
On the server, the content won't be rendered.
You have to wait for the client side hydratation to see the children.