@newyork.anthonyng/react-transport

0.0.2 • Public • Published

react-transport

A component that transports HTML elements to document.body.

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

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

API

isOpen : A React Component property that takes a boolean. If true, the element will be removed from the normal HTML flow and appended to the end of the document.body. If false, then nothing will render.

children : A single React element.

Readme

Keywords

Package Sidebar

Install

npm i @newyork.anthonyng/react-transport

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • newyork.anthonyng