Flyd a functional reactive library...

artydev

artydev

Posted on December 22, 2020

Flyd a functional reactive library...

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)
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
artydev
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.

Related

Flyd a functional reactive library...
reactive Flyd a functional reactive library...

December 22, 2020