From ddecc1eb83fdf00df6d84054b58a161ff4576b4d Mon Sep 17 00:00:00 2001 From: hanyujie2002 Date: Fri, 1 Nov 2024 16:08:32 +0800 Subject: [PATCH] fix: Fix an inner link --- src/content/learn/reacting-to-input-with-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/reacting-to-input-with-state.md b/src/content/learn/reacting-to-input-with-state.md index 7c49e5ab82..f759732659 100644 --- a/src/content/learn/reacting-to-input-with-state.md +++ b/src/content/learn/reacting-to-input-with-state.md @@ -353,7 +353,7 @@ body { margin: 0; } -### 步骤 3:通过 `useState` {/*step-3-represent-the-state-in-memory-with-usestate*/} 表示内存中的 state +### 步骤 3:通过 `useState` 表示内存中的 state {/*step-3-represent-the-state-in-memory-with-usestate*/} 接下来你会需要在内存中通过 [`useState`](/reference/react/useState) 表示组件中的视图状态。诀窍很简单:state 的每个部分都是“处于变化中的”,并且**你需要让“变化的部分”尽可能的少**。更复杂的程序会产生更多 bug!