Chapter 13 · Example 5 · React portals and why do we need them

Fixed cannot escape stacking

A position fixed dialog escapes overflow but still renders beneath a higher z-index sibling, proving nothing can break out of a parent stacking context.

Loading live editor…