Vuex is a concept to manage state(data) centrally of vue js application. It is created by evan you, creator of vue js, inspired from flux and redux. It’s a library, works with only vue js. It helps to manage state(data) of a large scale application in structured way.
As We know that vuex manage state centrally, So We can share state with other components in application using vuex. Managing state is a complex and debugging state is more bored task, When so much data traveling from one component to others. Vuex handle it in a simple way and developer can track state and debug easily.
It is not necessary to use vuex in your application. The necessity depends on how much you application will grow. If you need share child’s data with parent or siblings, you can use shared event emitters in a small application. But, When your app will become large enough, Vuex will be the right choice for sharing data.
You know the future of your application, that will grow enough. There are so many component and need to communicate with each other. Then why not vuex? It will help you to track all events. vuex separate your business logic from another component, but can use from any component.
In this article, I have tried to make you clear, What is vuex? In My next article I will dig into vuex with hands on code.