@ciceksepeti/cui-portal
v0.1.7
Published
ÇiçekSepeti Portal Component
Downloads
665
Readme
@ciceksepeti/cui-portal
A first-class way to render child components into a DOM node outside of the parent DOM hierarchy defined by the component tree hierarchy.
Installing
Using Npm:
$ npm install @ciceksepeti/cui-portal
Using Yarn:
$ yarn add @ciceksepeti/cui-portal
Example
import Portal from "@ciceksepeti/cui-portal";
function Demo() {
return <Portal>I am in a portal appended to body</Portal>;
}