Reactive JS:
Fast modern reactive Javascript programming library.
Platform Support
ReactiveJS is an isomorphic library which supports all modern ecmascript platforms including Node.js (v14 and up), Deno, and modern browsers.
Installing
NPM JS
Reactive JS can be added to your npm based project using the @reactive-js/core packages.
yarn add @reactive-js/core
ES6 Modules
Both Ecmascript and Typescript modules that may be directly imported into your project are available in the mod directory of this repo. These modules are all Deno compatible. Only modules in the toplevel directory are supported. Modules in the internal or experimental folders include API that is subject to change at any time. We recommend referencing specifically tagged releases of these files in your projects.
Example Usage
import { increment, pipe, returns } from "@reactive-js/core/functions";
import {
exhaust,
fromArray,
generate,
map,
onNotify,
subscribe
} from "@reactive-js/core/observable";
import { normalPriority } from "@reactive-js/core/react";
const subscription = pipe(
generate(increment, returns(0)),
map(x => fromArray([x, x, x, x])),
exhaust(),
onNotify(console.log),
subscribe(normalPriority);
);