File tree Expand file tree Collapse file tree
src/content/reference/react Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ html, body { min-height: 300px; }
368368
369369#### 控制模态对话框 {/*controlling-a-modal-dialog*/}
370370
371- 在这个例子中,外部系统是浏览器 DOM。` ModalDialog` 组件渲染一个 [` < dialog> ` ](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/dialog) 元素。它使用 Effect 将 ` isOpen` prop 同步到 [` showModal ()` ](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLDialogElement/showModal) 和 [` close ()` ](https://developer.mozilla.org/zh-CN /docs/Web/API/HTMLDialogElement/close) 方法调用。
371+ 在这个例子中,外部系统是浏览器 DOM。` ModalDialog` 组件渲染一个 [` < dialog> ` ](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/dialog) 元素。它使用 Effect 将 ` isOpen` prop 同步到 [` showModal ()` ](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLDialogElement/showModal) 和 [` close ()` ](https://developer.mozilla.org/en-US /docs/Web/API/HTMLDialogElement/close) 方法调用。
372372
373373<Sandpack>
374374
You can’t perform that action at this time.
0 commit comments