You add array of todos to the store simply by adding them to the state
defined in your store/index.js
file. You can access the array of todos using mapState
then loop through and display them with v-for
. This lesson walks you through the process of setting up todos in Vuex and displaying them in your Vue.js template.