Find Similar Packages for @reach/portal
@reach/portalSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on @reach/portal's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of @reach/portal](https://npm-compare.com/img/npm-trend/THREE_YEARS/@reach/portal.png)](https://npm-compare.com/@reach/portal#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
@reach/portal449,546
6,00320.7 kB99-MIT
README for @reach/portal

@reach/portal

Stable release MIT license

Docs | Source

Creates and appends a DOM node to the end of document.body and renders a React tree into it. Useful for rendering a natural React element hierarchy with a different DOM hierarchy to prevent parent styles from clipping or hiding content (for popovers, dropdowns, and modals).

import { Portal } from "@reach/portal";

function Example() {
	return (
		<Portal>
			<div>Stuff goes here</div>
		</Portal>
	);
}