mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 06:28:33 +00:00
8 lines
225 B
JavaScript
8 lines
225 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; |