1.0.3 • Published 10 months ago

@acrool/react-portal v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Acrool React Portal

NPM npm npm

npm downloads npm

https://react.dev/reference/react-dom/createPortal

Features

  • Pass the component to the external Dom through the portal

Install

yarn add @acrool/react-portal

Usage

add in your App.tsx

import ReactPortal from '@acrool/react-portal';

const App = () => {
    return (
        <ReactPortal
            id="acrool-react-modal"
            className={styles.root}
        >
            {item && renderDialog()}
        </ReactPortal>
    );
};

There is also a example that you can play with it:

Play react-editext-example

Play react-editext-example

Play react-editext-example

License

MIT © Acrool & Imagine

1.0.2

10 months ago

1.0.3

10 months ago

1.0.2-alpha.0

10 months ago

1.0.2-alpha.1

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.6-alpha.1

11 months ago

0.0.6-alpha.0

11 months ago

0.0.5

11 months ago

0.0.5-alpha.0

11 months ago

0.0.4

12 months ago

0.0.4-alpha.4

12 months ago

0.0.4-alpha.3

12 months ago

0.0.4-alpha.2

12 months ago

0.0.4-alpha.1

12 months ago

0.0.4-alpha.0

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago