quantum-state

v4.0.1 • by Leo Chen

A predictable state management library for Swalang, inspired by Redux and MobX.

Installation

$ swalang install quantum-state

Documentation

Quantum State

Manage your application's state with simplicity and power.

Usage

import { createStore } from 'quantum-state';

let counterStore = createStore({
  count: 0,
  increment() {
    this.count++;
  }
});

// In a component
counterStore.increment();