Features
- Compile-time reactivity
- Minimal reactive runtime
- Auto-memoization
- Stores
Variable changes and reactions are only limited in
$$
(even for nested $$
calls).
import { $$, $ } from 'silmaril'; $$(() => { // Create a "reactive" variable let count = 0; // Log count for changes $(console.log('Count: ', count)); function multiply() { // Update count count *= 100; } multiply(); // After some time, this code logs `Count: 100`. });