Portal library based for Reactjs
npm install @codestacks/react-portal
Throw React elements (ex: modal, dialog, toaster) to external using elements (usually used for





https://react.dev/reference/react-dom/createPortal
^1.1.0 support react >=18.0.0 <20.0.0
- Pass the component to the external Dom through the portal
``bash`
yarn add @codestacks/react-portal
add in your App.tsx
`tsx
import ReactPortal from '@codestacks/react-portal';
const App = () => {
return (
className={styles.root}
>
{item && renderDialog()}
);
};
``
There is also a example that you can play with it:



- Codestacks React Dialog
- Codestacks React Toaster
- Codestacks React Picker
MIT © Codestacks & Imagine