portalo
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

What is react portal ?

Consider a case you want to attach a child component someplace other than current component.

Installation

npm i react-provided-portal

Interface

<Portal
  selector="test-container"
  didMount={parent => console.log('component mounted!')}
  willUnmount={() => console.log('component unmounted!')}
>
  <div>hello-world</div>
</Portal>

Examples

const TestComponent

Readme

Keywords

none

Package Sidebar

Install

npm i portalo

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

5.81 kB

Total Files

9

Last publish

Collaborators

  • xeuus