Nuxt/test/fixtures/with-config/store/index.js
renovate[bot] 85615360b4
chore(deps): update all non-major dependencies (#9400)
[release] 

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-11 16:15:56 +02:00

19 lines
288 B
JavaScript

import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
// eslint-disable-next-line import/no-named-as-default-member
const store = () => new Vuex.Store({
state: {
counter: 0
},
mutations: {
increment (state) {
state.counter++
}
}
})
export default store