@smashing/portal

Component utility to help with the ReactDOM.createPortal API.

Usage no npm install needed!

<script type="module">
  import smashingPortal from 'https://cdn.skypack.dev/@smashing/portal';
</script>

README

yarn add @smashing/portal

Usage

import {Portal} from "@smashing/portal"

export default () => (
  <div>
    App content...
    <Portal>Content moved outside of react tree.</Portal>
  </div>
)