From 2946412b4c7da84583575cf4d7e1b737c55dc121 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 5 Oct 2021 20:25:10 +0100 Subject: [PATCH] :construction: WIP, working on VueX store --- src/store.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/store.js 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;