Verx
Lightweight vuex inspired centralized state management library for all kinds of javascript applications.
install
npm install --save verx # yarn add verx
Example
; const countStore = state: count: 0 mutations: { statecount++; } ; const store = modules: countStore ;
Now, you can can access the state object as store.getState('countStore')
, and trigger a state change with the store.commit
method:
store; console; // -> 1