States and Getters in Vuex

Learn about states and getters in Vuex.

State

The store’s state is where all the data we’re managing with Vuex lives. The term store refers to a central container for managing the state of our application. All the other functionality of the library revolves around accessing and updating this data.

The state itself is a single JavaScript object on which we create properties to hold any data that needs to be shared between different components in our application.

Get hands-on with 1200+ tech skills courses.