Skip to content

Commit 6e12f3f

Browse files
authored
fix: link (#1531)
1 parent 0ee357f commit 6e12f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/state-a-components-memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const [index, setIndex] = useState(0);
192192
`index` 是一个 state 变量,`setIndex` 是对应的 setter 函数。
193193

194194

195-
> 这里的 `[``]` 语法称为[数组解构](/learn/a-javascript-refresher#array-destructuring),它允许你从数组中读取值。 `useState` 返回的数组总是正好有两项。
195+
> 这里的 `[``]` 语法称为[数组解构](https://zh.javascript.info/destructuring-assignment),它允许你从数组中读取值。 `useState` 返回的数组总是正好有两项。
196196
197197
以下展示了它们在 `handleClick()` 中是如何共同起作用的:
198198

0 commit comments

Comments
 (0)