Skip to content

Commit c3ec5db

Browse files
committed
docs(cn): fix inconsistent link text for "State: 组件的记忆" page to match page title
1 parent 0dca54c commit c3ec5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/passing-props-to-a-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export default function App() {
414414

415415
然而,props 是 [不可变的](https://en.wikipedia.org/wiki/Immutable_object)(一个计算机科学术语,意思是“不可改变”)。当一个组件需要改变它的 props(例如,响应用户交互或新数据)时,它不得不“请求”它的父组件传递 **不同的 props** —— 一个新对象!它的旧 props 将被丢弃,最终 JavaScript 引擎将回收它们占用的内存。
416416

417-
**不要尝试“更改 props”。** 当你需要响应用户输入(例如更改所选颜色)时,你可以“设置 state”,你可以在 [State: 一个组件的内存](/learn/state-a-components-memory) 中继续了解。
417+
**不要尝试“更改 props”。** 当你需要响应用户输入(例如更改所选颜色)时,你可以“设置 state”,你可以在 [State:组件的记忆](/learn/state-a-components-memory) 中继续了解。
418418

419419
<Recap>
420420

0 commit comments

Comments
 (0)