From ec02b13d98899df5ec3a1ec839ad2646a22f3df3 Mon Sep 17 00:00:00 2001 From: zhaomeicheng <30540533+ZhaoTim@users.noreply.github.com> Date: Fri, 20 Dec 2024 20:56:37 +0800 Subject: [PATCH] Update reusing-logic-with-custom-hooks.md --- src/content/learn/reusing-logic-with-custom-hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/reusing-logic-with-custom-hooks.md b/src/content/learn/reusing-logic-with-custom-hooks.md index e19faf9651..bd6e916fb4 100644 --- a/src/content/learn/reusing-logic-with-custom-hooks.md +++ b/src/content/learn/reusing-logic-with-custom-hooks.md @@ -325,7 +325,7 @@ function SaveButton() { } ``` -这是完全独立的两个 state 变量和 Effect!只是碰巧同一时间值一样,因为你使用了相同的外部值同步两个组件(无论网络是否开启)。 +这是完全独立的两个 state 变量和 Effect!只是碰巧同一时间值一样,因为你使用了相同的外部值(网络是否开启)同步两个组件。 为了更好的说明这一点,我们需要一个不同的示例。看下面的 `Form` 组件: