We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fe027e commit 0a4cb1dCopy full SHA for 0a4cb1d
1 file changed
content/docs/portals.md
@@ -48,7 +48,7 @@ render() {
48
>
49
> 对于模态对话框,通过遵循 [WAI-ARIA 模态开发实践](https://www.w3.org/TR/wai-aria-practices-1.1/#dialog_modal),来确保每个人都能够运用它。
50
51
-[**在 CodePen 上试一试**](https://codepen.io/gaearon/pen/yzMaBd)
+[**在 CodePen 上尝试**](https://codepen.io/gaearon/pen/yzMaBd)
52
53
## 通过 Portal 进行事件冒泡 {#event-bubbling-through-portals}
54
@@ -149,6 +149,6 @@ function Child() {
149
ReactDOM.render(<Parent />, appRoot);
150
```
151
152
-[**在 CodePen 上试一试**](https://codepen.io/gaearon/pen/jGBWpE)
+[**在 CodePen 上尝试**](https://codepen.io/gaearon/pen/jGBWpE)
153
154
在父组件里捕获一个来自 portal 冒泡上来的事件,使之能够在开发时具有不完全依赖于 portal 的更为灵活的抽象。例如,如果你在渲染一个 `<Modal />` 组件,无论其是否采用 portal 实现,父组件都能够捕获其事件。
0 commit comments