From 3b991182d67fd2356adc9e9efb674f8c7a8ca8e0 Mon Sep 17 00:00:00 2001 From: WuMingDao <146366930+WuMingDao@users.noreply.github.com> Date: Sun, 17 Aug 2025 10:38:16 +0800 Subject: [PATCH] docs: fix dead link on manipulating-the-dom-with-refs.md --- src/content/learn/manipulating-the-dom-with-refs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/manipulating-the-dom-with-refs.md b/src/content/learn/manipulating-the-dom-with-refs.md index 937d5c9175..1a970d54a9 100644 --- a/src/content/learn/manipulating-the-dom-with-refs.md +++ b/src/content/learn/manipulating-the-dom-with-refs.md @@ -79,7 +79,7 @@ export default function Form() { 1. 使用 `useRef` Hook 声明 `inputRef`。 2. 像 `` 这样传递它。这告诉 React **将这个 `` 的 DOM 节点放入 `inputRef.current`。** -3. 在 `handleClick` 函数中,从 `inputRef.current` 读取 input DOM 节点并使用 `inputRef.current.focus()` 调用它的 [`focus()`](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLElement/focus)。 +3. 在 `handleClick` 函数中,从 `inputRef.current` 读取 input DOM 节点并使用 `inputRef.current.focus()` 调用它的 [`focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus)。 4. 用 `onClick` 将 `handleClick` 事件处理器传递给 `