Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.27 KB

fromEvent.md

File metadata and controls

36 lines (24 loc) · 1.27 KB
id lesson learnAbout seeAlso title layout class preview_image preview_image_alt
fromEvent
1
filter
map
Learn reactive programming - Lesson 1, A stream of toggle events
default
post
fromEvent/content_preview.jpg
fromEvent reactive operator and streams

{% include card_player.html video=238067747 episode=false %}

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

{:.w300}
map vs filter

{:.w300}
Pipeable operators - Build your own with RxJS!

{:.w300}
zip vs combineLatest

{:.w300}
The JavaScript pipeline operator proposal