This is a very simple component that is used in other places within react-md to conditionally render the children within a portal or not based on general portal config props.
This component is a simple wrapper for the createPortal
API from ReactDOM
that will just ensure that null
is always returned for server side
rendering as well as a "nice" way to choose specific portal targets or just
falling back to the document.body
.
Generated using TypeDoc
This is the type for how a portal can be rendered into another element. This can either be a function that returns the HTMLElement, an HTMLElement, or a
document.querySelector
string.