createPortal function
Creates a portal node.
Client renderers will pass container to react-dom; server renderers
reject portals because they have no host destination.
Implementation
ReactNode createPortal(
ReactChildren children,
Object container, {
String? key,
}) => Portal(normalizeChildren(children), container, key: key);