react-document-portal

1.2.1 • Public • Published

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.

/react-document-portal/

    Package Sidebar

    Install

    npm i react-document-portal

    Weekly Downloads

    2,166

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    13.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • jacobbuck