Skip to content

Commit b0687a5

Browse files
authored
docs: fix dead link on useEffect.md
1 parent 02f1c61 commit b0687a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/reference/react/useEffect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)