quantum-state v4.0.1 — SwaHub
A predictable state management library for Swalang, inspired by Redux and MobX.
Code Reference (main.sw)
swalang install quantum-state# Quantum State
Manage your application's state with simplicity and power.
## Usage
```swalang
import { createStore } from 'quantum-state';
let counterStore = createStore({
count: 0,
increment() {
this.count++;
}
});
// In a component
counterStore.increment();
```
Sitemap & Ecosystem Navigation
Language & Tools
Community & Dictionary
Foundation & Governance
Viewing the pre-rendered indexable snapshot of this resource.
Open in Swalang Web IDE →