Mon, Oct 19
Daily Challenge
One question per day, deterministic by local date. Read it, think it through, mark it complete to extend your streak.
react · medium
What are React Portals and when would you use them?
Portals render a child into a DOM node outside the parent's hierarchy while preserving React's component tree (state, context, events). Used for modals, tooltips, popovers, toasts — anything that needs to escape `overflow:hidden` or stacking context but stay logically inside the component. Events still bubble through React's virtual tree, not the DOM ancestor.
Open question