React component which renders its children inside a portal attached to the document.
- 🎁 Lightweight
- 😄 Easy to use with simple API
- 🖨️ Server-side rendering out of the box
- 🐬 Runs on Internet Explorer
<DocumentPortal>…</DocumentPortal>
as
tagName string used to create portal container, defaults to"div"
.children
any elements to render inside a portal.
Requires a minimum of React v16.8.0.