@x1a0ma17x/zeppos-reactive
v1.0.2
Published
  
Downloads
300
Readme
ZeppOS Ractive
An extremely lightweight reactive system designed for performance-constrained JavaScript environments.
- ✅ Minimal implementation without effect stacks or schedulers
- ✅ Suitable for constrained runtime environments like ZeppOS, IoT, and Mini Programs
📦 Installation
pnpm add @x1a0ma17x/zeppos-reactive🚀 Quick Start
import { reactive, effect, computed, memo, merge, mergeProps, watch } from "@x1a0ma17x/zeppos-reactive";
const state = reactive({
count: 1,
});
effect(() => {
console.log("count changed:", state.count);
});
state.count++; // Automatically triggers the effectDeveloper Guide
Install dependencies:
pnpm installbuild and watch:
pnpm build:watch