Skip to content

Commit 9da13d8

Browse files
authored
Include mutations in the Vuex 4.x example
1 parent 12aabe4 commit 9da13d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/guide/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ const store = createStore({
4747
return {
4848
count: 1
4949
}
50+
},
51+
mutations: {
52+
increment (state) {
53+
state.count++
54+
}
5055
}
5156
})
5257

0 commit comments

Comments
 (0)