mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-28 07:04:10 +00:00
9 lines
226 B
JavaScript
9 lines
226 B
JavaScript
import { createPortal } from 'react-dom';
|
|
|
|
function Portal({ children, wrapperId }) {
|
|
wrapperId = wrapperId || "bruno-app-body";
|
|
|
|
return createPortal(children, document.getElementById(wrapperId));
|
|
}
|
|
export default Portal;
|