in ReactJS by (6.2k points)
ReactDOM createPortal()

1 Answer

0 votes
by (6.2k points)
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 Mar 1, 2020 in ReactJS by RShastri (1.7k points)
0 votes
0 votes
asked Dec 14, 2019 in ReactJS by AdilsonLima (6.2k points)
0 votes
asked Dec 14, 2019 in ReactJS by AdilsonLima (6.2k points)
0 votes
asked Dec 14, 2019 in ReactJS by AdilsonLima (6.2k points)
...