Neophobe Plebeian Mumpsimus

    @newyork.anthonyng/react-transport

    0.0.2 • Public • Published

    react-transport

    A component that transports HTML elements to document.body.

    <Transport isOpen>
        <h1>Hello World</h1>
    </Transport>
     
    // The H1 element will be appended to the end of document.body

    API

    isOpen : A React Component property that takes a boolean. If true, the element will be removed from the normal HTML flow and appended to the end of the document.body. If false, then nothing will render.

    children : A single React element.

    Keywords

    Install

    npm i @newyork.anthonyng/react-transport

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar