Every application has some data to manage in the form of values to keep track of related to the user’s choices or the information that is being displayed. To further complicate things, we could be using the same data across multiple instances of Vue. Handling this is called state management. We will take a look at three ways to manage state with Vue: a simple data object, a do-it-yourself data store, and a state management library called Vuex.
Simple Data Objects
The most basic way to manage and share data is with a simple JavaScript object that has some properties with values. This object is ...