Skip to content

docs(cn): fix inconsistent link text for "State: 组件的记忆" page to match… #1721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/learn/passing-props-to-a-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export default function App() {

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

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

<Recap>

Expand Down