Skip to main content
InterviewHubPRO
Section Overview
Q207

Question 207 of 407

Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

51%
React Core & Hooks (407 Qs)•Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

What is the typical use case of portals?

junior LevelFormsPerformance

React Portals are primarily used to render UI components such as modals, tooltips, dropdowns, hovercards, and notifications outside of their parent component's DOM tree. This helps avoid common CSS issues caused by parent elements, such as:

  • **overflow: hidden** on parent elements clipping or hiding child elements like modals or tooltips,
  • stacking context and `**