diff --git a/src/store.js b/src/store.js new file mode 100644 index 00000000..1ee854ac --- /dev/null +++ b/src/store.js @@ -0,0 +1,17 @@ +import Vue from 'vue'; +import Vuex from 'vuex'; + +Vue.use(Vuex); + +const store = new Vuex.Store({ + state: { + count: 0, + }, + mutations: { + increment(state) { + state.count++; + }, + }, +}); + +export default store;