If you need to render a child into a different DOM node, outside of the parent DOM hierarchy, you would use a React Portal.

  • Bridge
  • Gateway
  • Passage
  • Portal
When you need to render a child component into a different DOM node, outside of the parent DOM hierarchy, React Portals are the appropriate choice. They act as a bridge or gateway to render content in a different place in the DOM while maintaining React's component structure and functionality.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *