Skip to content

Instantly share code, notes, and snippets.

@techwizzdom
Created July 8, 2021 07:17
Show Gist options
  • Save techwizzdom/effc2f6c27a64343423daeaa50d8284f to your computer and use it in GitHub Desktop.
Save techwizzdom/effc2f6c27a64343423daeaa50d8284f to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
count: 0
},
mutations: {
increment (state) {
state.count++
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment