DEV Community

artydev
artydev

Posted on

2 2

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

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)