Flyd a functional reactive library...
artydev
Posted on December 22, 2020
In my previous post I said Kefir is lighter than RxJS.
Flyd is lighter than Kefir, perhaps will it fits your needs.
Here is a simple counter in Flyd : FlydCounter
var clicks = flyd.stream();
inc.addEventListener('click', () => clicks(1));
dec.addEventListener('click', () => clicks(-1));
const sum = flyd.scan((x,y) => x + y, 0, clicks)
sum.map((v) => result.innerText = v)
💖 💪 🙅 🚩
artydev
Posted on December 22, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.