react-port

0.0.2 • Public • Published

WIP

react-port

A component that renders a component subtree somewhere else.

(right now that's just the bottom of the body)

Usage

import Portal from "react-port"

const MyApp = () =>
  <div>
    This renders where expected.

    <Portal>
      This gets appended to the bottom of the body.
    </Portal>
  </div>

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-port

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • chantastic