whatare portals in react

Solutions on MaxInterview for whatare portals in react by the best coders in the world

showing results for - "whatare portals in react"
Christian
31 Jun 2019
1Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Ignacio
21 Jan 2019
1ReactDOM.createPortal(child, container)
2// The first argument (child) is any renderable React child, such as an element, string, or fragment. 
3//The second argument (container) is a DOM element.