Today we will be creating a simple counter app from scratch to learn the basics of using Vuex 4 with Vue 3 Composition API. We’ll start by taking a look at Vuex concepts like state, getters, and mutations and how to use them within the options API, then we will switch over the compositions API and implement the same functionality. We’ll also create some reusable helper functions to make accessing the store in the composition API more readable.
#vue #vuex #composition-api
⚡ RESOURCES ⚡
Vuex 4 Docs - https://next.vuex.vuejs.org/guide/#the-simplest-store
Vue 3 - https://v3.vuejs.org/
Composition Vuex Helper functions Issue - https://github.com/vuejs/vuex/issues/1725
Source Code - (coming soon)
⭐ TIMESTAMPS ⭐
0:00 - Intro
1:08 - Creating a project
1:17 - Vuex Concepts
2:45 - Options API
3:35 - Vuex map Functions
4:24 - Composition API
5:00 - Composition Helper Functions
6:02 - Conclusion
#vue #vuex #composition-api #javascript #basics