Answers for "whatare portals in react"

2

whatare portals in react

Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Posted by: Guest on July-05-2021
0

react portals

ReactDOM.createPortal(child, container)
// The first argument (child) is any renderable React child, such as an element, string, or fragment. 
//The second argument (container) is a DOM element.
Posted by: Guest on July-10-2021

Code answers related to "whatare portals in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language