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>

Readme

Keywords

none

Package Sidebar

Install

npm i react-port

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • chantastic