Skip to content

jacobbuck/react-document-portal

Repository files navigation

react-document-portal

React component which renders its children inside a portal attached to the document.

  • 🎁 Lightweight npm bundle size
  • 😄 Easy to use with simple API
  • 🖨️ Server-side rendering out of the box
  • 🐬 Runs on Internet Explorer

Usage

<DocumentPortal></DocumentPortal>

Props

  • as tagName string used to create portal container, defaults to "div".
  • children any elements to render inside a portal.

Requirements

Requires a minimum of React v16.8.0.

About

🌀 Render elements inside a portal on the document.

Resources

License

Stars

Watchers

Forks