Skip to content

Instantly share code, notes, and snippets.

@c0depanda
Last active Jan 6, 2019
Embed
What would you like to do?
// import Vue
import Vue from 'vue';
// import Vuex
import Vuex from 'vuex';
// Install the Vuex plugin on vue
Vue.use(Vuex);
// create a Vuex store instance
export const store = new Vuex.Store({
state: {
cart: ''
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment