PortalContext
Stores the element that will contain the portal. By default, it will be the body of the document.
Code examples
const container = document.getElementById("container");
function App() {
return (
<PortalContext.Provider value={container}>
</PortalContext.Provider>
);
}