Creating Portals
Learn how to render child components into a DOM node outside of the parent DOM hierarchy.
We'll cover the following...
Creating a portal using createPortal()
Creating a portal is relatively simple compared to other concepts we have learned about so far. The component that intends to use the portal has to call the createPortal()
method from ReactDOM and pass in a valid component as the first parameter and an existing ...