📜  反应门户 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:31.045000             🧑  作者: Mango

代码示例3
A typical use case for portals is when a parent component has an overflow: hidden or z-index style, but you need the child to visually “break out” of its container. For example, dialogs, hovercards, and tooltips. Note: When working with portals, remember that managing keyboard focus becomes very important.