robofox-react-portal

1.0.3 • Public • Published

robofox-react-portal

  • Easily create a top level component from anywhere in your tree
  • Useful for popups, modals and the like

Install

npm install robofox-react-portal

Example

import React from 'react'
import Portal from 'robofox-react-portal'

function MyApp() {
  return(
    <Portal>
      ...your components
    </Portal>
}

License

Code released under the MIT license.

Package Sidebar

Install

npm i robofox-react-portal

Weekly Downloads

199

Version

1.0.3

License

MIT

Unpacked Size

4.82 kB

Total Files

5

Last publish

Collaborators

  • hxf31891