Skip to content
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

fix: Modify the anchor text “使用 Effect 同步” #1596

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/content/learn/escape-hatches.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function Form() {

</LearnMore>

## 使用 Effect 同步 {/*synchronizing-with-effects*/}
## 使用 Effect 进行同步 {/*synchronizing-with-effects*/}

有些组件需要与外部系统同步。例如,可能需要根据 React 状态控制非 React 组件、设置服务器连接或在组件出现在屏幕上时发送分析日志。与处理特定事件的事件处理程序不同,**Effect** 在渲染后运行一些代码。使用它将组件与 React 之外的系统同步。

Expand Down Expand Up @@ -187,7 +187,7 @@ input { display: block; margin-bottom: 20px; }

<LearnMore path="/learn/synchronizing-with-effects">

阅读 **[使用 Effect 同步](/learn/synchronizing-with-effects)** 以了解如何将组件与外部系统同步。
阅读 **[使用 Effect 进行同步](/learn/synchronizing-with-effects)** 以了解如何将组件与外部系统同步。

</LearnMore>

Expand Down
2 changes: 1 addition & 1 deletion src/sidebarLearn.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"path": "/learn/manipulating-the-dom-with-refs"
},
{
"title": "使用 Effect 同步",
"title": "使用 Effect 进行同步",
"path": "/learn/synchronizing-with-effects"
},
{
Expand Down
Loading