0.0.33 • Published 4 years ago
@reactive-js/types-bucklescript v0.0.33
Reactive JS:
Fast modern reactive Javascript programming library
Example Usage
import { connect } from "@reactive-js/rx";
import {
exhaust,
fromArray,
generate,
map,
onNext,
} from "@reactive-js/observable";
import { pipe } from "@reactive-js/pipe";
import { normalPriority } from "@reactive-js/react-scheduler";
// The pipe function can be used to compose operators.
const subscription = pipe(
// The event source is a generator that generates numbers as fast
// as it can. Note this work is still done concurrently with
// other worked scheduled on the scheduler. The generate function yields
// to the scheduler to let it do other work such as letting
// the browser paint or allowing react to render component
// trees.
generate(x => x + 1, 0),
map(x => fromArray([x, x, x, x])),
exhaust(),
// Write the output to the console.
// To observe notifications generated by the observable,
// we use a variation of the observe operator (observe, onNext, onComplete, onError).
onNext(console.log),
// Connect the observable to a scheduler, creating a subscription.
// In reactive-js, we never directly create a Subscriber, but instead
// use the connect function.
connect(normalPriority);
);
Packages
Reactive Asynchronous Programming (RX)
Interactive Asynchronous Programming (IX)
Schedulers
Utilities
Platform Integrations
Node.js
React
Web
RxJS/TC39 Comparison
0.0.33
4 years ago
0.0.32
4 years ago
0.0.31
4 years ago
0.0.30
4 years ago
0.0.29
4 years ago
0.0.26
4 years ago
0.0.27
4 years ago
0.0.28
4 years ago
0.0.25
4 years ago
0.0.24
4 years ago
0.0.22
4 years ago
0.0.23
4 years ago
0.0.21
4 years ago
0.0.20
4 years ago
0.0.19
4 years ago
0.0.18
4 years ago
0.0.17
4 years ago
0.0.16
4 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago