🚧 WIP, working on VueX store

This commit is contained in:
Alicia Sykes 2021-10-05 20:25:10 +01:00
parent 41682c8914
commit 2946412b4c
1 changed files with 17 additions and 0 deletions

17
src/store.js Normal file
View File

@ -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;