Vuex Store

In the first example we show how the store works using a todo app


In this example:

store/todos.js stores state and mutations for our todo list.

pages/index.vue imports the mapMutations from the store and uses computed properties and methods to add and remove todos from the store.

Loading Sandbox...
Edit this page on GitHub Updated at Mon, Jul 12, 2021