Adrià Fontcuberta wrote a nice tutorial on how to manage states in Vue.js.

vue.js states

In this post, he will build a simple voting app to let us know more about the concepts of states, mutations, and other things.

State management is one of “those things”. Backends roll their eyes, frontends hide under the desk. After all, managing state is the hardest part of being a frontend developer: you need to think in terms of the UI as something that changes over time. And we are not particularly good at it.

In this post, we will discover how to handle state in a Vue application from the ground up. We will end up creating our own state manager generator!