Skip to content

Commit efa7ff9

Browse files
Update reactivity-fundamentals.md (#1608)
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).
1 parent c0a225f commit efa7ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/essentials/reactivity-fundamentals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ To wait for the DOM update to complete after a state change, you can use the [ne
224224
import { nextTick } from 'vue'
225225

226226
function increment() {
227-
count.value++
227+
state.count++
228228
nextTick(() => {
229229
// access updated DOM
230230
})

0 commit comments

Comments
 (0)