Skip to content

Commit 34d5263

Browse files
authored
docs: fix dead link on synchronizing-with-effects.md
1 parent 02f1c61 commit 34d5263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/learn/synchronizing-with-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ React 将第三次渲染时的 `['travel']` 与第二次渲染时的 `['general'
994994
995995
在下面的例子中,表单中渲染了一个 `<MyInput />` 组件。
996996
997-
使用输入框的 [`focus()`](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLElement/focus) 方法,让 `MyInput` 在页面上出现时自动聚焦。已经有一个被注释掉的实现,但它并不能正常工作。找出它为什么不起作用,并修复它。如果你熟悉 `autoFocus` 属性,请假装它不存在:我们正在从头开始实现相同的功能。
997+
使用输入框的 [`focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) 方法,让 `MyInput` 在页面上出现时自动聚焦。已经有一个被注释掉的实现,但它并不能正常工作。找出它为什么不起作用,并修复它。如果你熟悉 `autoFocus` 属性,请假装它不存在:我们正在从头开始实现相同的功能。
998998
999999
<Sandpack>
10001000

0 commit comments

Comments
 (0)