From e81911a0e1593c3c7779be996094cb445d71f362 Mon Sep 17 00:00:00 2001 From: Wang Ningning <2453549420@qq.com> Date: Wed, 9 Mar 2022 10:15:33 +0800 Subject: [PATCH] Update reactivity-fundamentals.md In the DOM Update Timing section's example, it seems we should use state.count++(which has been shown above) instead of count.value++(which comes later). --- src/guide/essentials/reactivity-fundamentals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/essentials/reactivity-fundamentals.md b/src/guide/essentials/reactivity-fundamentals.md index e22a7b3271..3f91ed8ac0 100644 --- a/src/guide/essentials/reactivity-fundamentals.md +++ b/src/guide/essentials/reactivity-fundamentals.md @@ -224,7 +224,7 @@ To wait for the DOM update to complete after a state change, you can use the [ne import { nextTick } from 'vue' function increment() { - count.value++ + state.count++ nextTick(() => { // access updated DOM })