0.0.2 • Published 7 years ago

@newyork.anthonyng/react-transport v0.0.2

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

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.