0.1.6 • Published 2 months ago
@ciceksepeti/cui-portal v0.1.6
@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>;
}