4 min read
•Question 20 of 48mediumReact Portals
Rendering children outside parent DOM.
What are Portals?
Portals let you render children into a DOM node that exists outside the parent component's DOM hierarchy.
Common Use Cases
- Modals and dialogs
- Tooltips
- Floating menus
- Any UI that needs to "break out" of container