Agenda
Reactive programming
What is RxJS?
The if-else problem
Reactive if-else pattern
References
Slide 3
Slide 3 text
Reactive programming
A programming paradigm concerned with data streams and
change propagation.
With this paradigm it is possible to express
and manipulate dynamic (e.g. event emitters)
or static (e.g. arrays) data streams.
What is RxJS?
Reactive Extensions for JavaScript is a library for
transforming, composing, and querying streams of data.
See: https://rxjs-dev.firebaseapp.com/
Slide 9
Slide 9 text
What is RxJS?
Slide 10
Slide 10 text
What is RxJS?
const { of } = Rx;
const numbers = of(1, 2, 3);
numbers.subscribe(num => console.log(num))
OBSERVABLE SUBSCRIBER
3 2 1