ReactDOM: createPortal()

createPortal()

ReactDOM.createPortal(child, container)

Creates a portal that provides a way to render children into a DOM node that exists outside the hierarchy of the DOM component.

Related concepts

createPortal()

ReactDOM: createPortal() — Structure map

Clickable & Draggable!

ReactDOM: createPortal() — Related pages: