1.0.3 • Published 7 years ago

react-portal-lite v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

React-Portal (lite)

Travis Codecov license semantic-release

A lightweight component that transports HTML elements to the end of document.body.

Installation

$ npm install --save react-portal-lite

Basic Usage

<Transport isOpen>
  <h1>Hello World</h1>
</Transport>

// The H1 element will be appended to the end of document.body

API

PropertyDescription
isOpenAccepts a boolean. If true, the element will be removed from the normal HTML flow and appended to the end of document.body. If false, nothing will render.
childrenA single React element that will be appended to the end of document.body.
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago