1.0.3 • Published 10 months ago
@acrool/react-portal v1.0.3
Acrool React Portal
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:
License
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