0 votes
in ReactJS by
ReactDOM createPortal()

1 Answer

0 votes
by
ReactDOM.createPortal(child, container)

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

Related questions

0 votes
asked Dec 14, 2019 in ReactJS by AdilsonLima
0 votes
asked Dec 14, 2019 in ReactJS by AdilsonLima
0 votes
asked Dec 14, 2019 in ReactJS by AdilsonLima
...