@ciceksepeti/cui-portal
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@ciceksepeti/cui-portal

npm version storybook PRs Welcome license

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>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @ciceksepeti/cui-portal

Weekly Downloads

38

Version

0.1.7

License

MIT

Unpacked Size

47.8 kB

Total Files

7

Last publish

Collaborators

  • admin.it