Chapter 2. Reacting with RxJS

This chapter covers

  • Looking at streams as the main unit of work
  • Understanding functional programming’s influence on RxJS
  • Identifying different types of data sources and how to handle them
  • Modeling data sources as RxJS observables
  • Consuming observables with observers

When writing code in an object-oriented way, we’re taught to decompose problems into components, interactions, and states. This breakdown occurs iteratively and on many levels, with each part further subdivided into more components, until at last we arrive at a set of cohesive classes that implement a well-defined set of interactions. Hence, in the object-oriented (OO) approach, classes are the main unit of work. Every time a component is created, ...

Get RxJS in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.