React DOM integration
createPortal
Render into an existing DOM node while keeping React tree ownership.
Formal Syntax & Structure
react syntaxreact
createPortal(<Notice />, document.body)Working Example
Example Snippetreact
createPortal(<Notice />, document.body)