Skip to content

Commit 273ab85

Browse files
committed
docs(reference/react): fix mismatched cat name references between description and code example
1 parent e193d1e commit 273ab85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/reference/react/StrictMode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ button { margin-left: 10px; }
841841
842842
当开启严格模式时,React 还会在开发模式下为每个回调 `ref` **额外运行一次 setup+cleanup 循环**。这可能会让人感到惊讶,但它有助于发现手动难以捕捉到的细微错误。
843843
844-
参考以下示例,它允许你选择一种动物然后滚动到其中之一。注意,当你从 "Cats" 切换到 "Dogs" 时,控制台日志显示列表中的动物数量持续增长,而「滚动到」按钮停止工作:
844+
参考以下示例,它允许你选择一种动物然后滚动到其中之一。注意,当你从 "Neo" 切换到 "Millie" 时,控制台日志显示列表中的动物数量持续增长,而「滚动到」按钮停止工作:
845845
846846
<Sandpack>
847847

0 commit comments

Comments
 (0)