Streams

fromEvent is a function that accepts a source of events, such as click events on a toggle. As a result, it creates a sequence of events over time. This sequence is called a stream.

Reactive programming is programming with streams.

Reactive stream libraries like RxJS let you:

  • create a stream from various sources
  • transform and filter a stream in different ways
  • combine multiple streams
  • and more!

See also


map vs filter


Pipeable operators - Build your own with RxJS!


zip vs combineLatest


The JavaScript pipeline operator proposal

Cédric Soulas Follow Hire me

Freelance Developer Advocate. Motion graphics with code. JavaScript and Elm. cedricsoulas.com

Subscribe to reactive.how newsletter

Join the Newsletter

Learn Reactive Programming and stay up-to-date:

Receive my latest news, product updates and programming visualizations. You can unsubscribe at any time.

Highlights

@CedricSoulas

Making an illustrated book!

The Illustrated Book of RxJS

Learn more →