vuex

framework utility reactive

Vuex is a state management pattern and library for Vue.js applications. It serves to make state mutations predictable and is used for sharing state between multiple components.

Latest Ver 4.1.0
Homepage
Github
0
28,463
📢 Vuex provides a centralized state management system for Vue.js.
License: MIT
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.cjs.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.cjs.min.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.esm-browser.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.esm-browser.min.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.esm-browser.prod.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.esm-browser.prod.min.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.esm-bundler.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.esm-bundler.min.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.global.js
https://cdnjs.cloudflare.com/ajax/libs/vuex/4.1.0/vuex.global.min.js

Sample Code

⚠️ Some code, including import statements, may not run properly on jsFiddle. If it fails to execute, please copy the code and try it in your own environment.
📄 HTML
<div id='app'></div>

🧩 External JS
<script src="https://cdn.jsdelivr.net/npm/vue"></script>

⚙️ JavaScript
const store = new Vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    increment(state) {
      state.count++
    }
  }
});

// components can dispatch actions
store.commit('increment');
console.log(store.state.count); // 1
⚡ Top Tools for Developers
Text Compare

Text Comparison

Easily spot the differences between two texts.

Favicon Generator

Favicon Generator

Quickly and easily generate favicons.

Lorem Ipsum Generator

Lorem Ipsum Generator

Generate placeholder text for your designs.

Character Counter

Character Counter

Check character and word count in real time.

SRT ↔ SMI

SRT ↔ SMI Converter

Easily convert between subtitle formats.

Text Extract(OCR)

Image Text Extractor

Automatically extract text from images.