What are states in VueJS?

Local state is something that we naturally use in every Vue component and keep in it’s data property . The value of the local state is declared and scoped to a certain component. One of the most common use cases for the local state is storing information about the user interface.

Read more

How do I change my Vuex state?

Vuex stores are reactive. When Vue components retrieve state from it, they will reactively and efficiently update if the store’s state changes. You cannot directly mutate the store’s state. The only way to change a store’s state is by explicitly committing mutations .

Read more