A lightweight reactive core for learning and experimentation.
- Deep reactive state with Proxy
- Auto-tracking effects
TypeScript support
<script type="module">
import { reactive, effect } from 'https://cdn.jsdelivr.net/gh/soham901/chunk/src/core.min.js';
const state = reactive({ count: 0 });
effect(() => console.log(`Count: ${state.count}`));
state.count++; // Triggers effect
</script>Bundle Size: ~4.0K (minified)
reactive(target) – Creates a deeply reactive proxy
effect(fn) – Runs a function; re-runs when dependencies change
Computed values with dependency tracking, array reactivity, Map/Set support, effect cleanup, batched updates, component system, DOM rendering
Developer is busy with coffee. Check back later for v0.0.1