Reactive

RxJs

Watch User Created Playlist (78)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Observables are the foundation in RxJS

Returning subscriptions from the subscribe function

P

Creation operator: create()

P

Creation operators: interval and timer

P

Creation operators: empty, never, throw

P

Creation operators: fromEventPattern, fromEvent

P

Creation operators: from, fromArray, fromPromise

P

Creation operator: of()

P

Observables can complete

P

Observables can throw errors

P

Observables (push) compared to generator functions (pull)

P

Observables are almost like Functions

P

Let's learn RxJS

Creating Observable From Scratch

Sharing Streams with Share

P

Basic DOM Rendering with Subscribe

P

Resubscribing to a Stream with Repeat

P

Refactoring CombineLatest to WithLatestFrom

P

Timer and Input Recap

P

Logging a Stream with Do

P

Handling a Complete Stream with Reduce

P

Completing a Stream with TakeWhile

P

Adding Conditional Logic with Filter

P

Combining Streams with CombineLatest

P

Getting Input Text with Map

P

Refactoring Composable Streams in RxJS

P

Handling Multiple Streams with Merge

P

Changing Behavior with MapTo

P

Displaying Initial Data with StartWith

P

Updating Data with Scan

P

Stopping a Stream with TakeUntil

P

Starting a Stream with SwitchMap

Using Observable.create for fine-grained control

P

Reacting to multiple inputs using RxJS's combineLatest

P

Overview of Cycle.js

Exporting values from components through sinks

Isolating component instances

Multiple independent instances of a component

Using the component in the main() function

Our first component: a labeled slider

Model-View-Intent pattern for separation of concerns

Body-Mass Index calculator built in Cycle.js

Using the HTTP Driver

An interactive counter in Cycle.js

Hello World in Cycle.js

From toy DOM Driver to real DOM Driver

Hyperscript as our alternative to template languages

Fine-grained control over the DOM Source

Making our toy DOM Driver more flexible

Use the Cycle.js run() function

Read effects from the DOM: click events

Introducing run() and driver functions

Customizing effects from the main function

Main function and effects functions

Separate logic from effects in Cycle

Event Delegation with RxJS

P

Yolk (An RxJS UI Library) in 7 Minutes

An overview of RxJS reactive concepts

P

Use cached network data with RxJS

P

Share Network Requests with RxJS merge

P

Clear data while loading with RxJS startWith

P

Send new requests from refresh clicks in RxJS

P

Render on the DOM with RxJS

P

Use RxJS Async Requests and Responses

P

Reactive Programming - Why choose RxJS?

P

Use an event stream of double clicks in RxJS

P

Understand Reactive Programming using RxJS

Error Handling in RxJS

P

Introduction to the ConnectableObservable and using publish().refCount() in RxJS

P

Aggregating Streams With Reduce And Scan using RxJS

P

Demystifying Cold and Hot Observables in RxJS

RxJS - map vs flatMap

Toggle A Stream On And Off With RxJS

P

Stream Processing With RxJS vs Array Higher-Order Functions

P

Throttled Buffering in RxJS

P

RxJS Observables vs Promises

What Is RxJS?

Creating An Observable with RxJS

rx tutorial about Observables are the foundation in RxJS

Observables are the foundation in RxJS

0:54 rx

Let's conclude this course by reviewing what an Observable is: a way of representing many values being delivered in push-style from a lazy producer to a consumer. Let's also see how the Observable alone is not everything in RxJS. It serves as the foundation to operators, which are the most useful feature of RxJS.

rx tutorial about Returning subscriptions from the subscribe function

Returning subscriptions from the subscribe function

3:14 rx PRO

So far, when writing these subscribe functions, we haven't returned anything. It is possible return an unsubscribe function from a subscribe function. In this lesson we will see how to allow observers to subscribe and unsubscribe from an Observable.

rx tutorial about Creation operator: create()

Creation operator: create()

3:03 rx PRO

We have been using Observable.create() a lot in previous lessons, so let's take a closer look how does it work.

rx tutorial about Creation operators: interval and timer

Creation operators: interval and timer

4:11 rx PRO

It is quite common to need an Observable that ticks periodically, for instance every second or every 100 miliseconds. We will learn about operators interval() and timer(), both of which are similar to setInterval() in JavaScript.

rx tutorial about Creation operators: empty, never, throw

Creation operators: empty, never, throw

2:48 rx PRO

This lesson introduces operators empty(), never(), and throw(), which despite being plain and void of functionality, are very useful when combining with other Observables.

rx tutorial about Creation operators: fromEventPattern, fromEvent

Creation operators: fromEventPattern, fromEvent

3:49 rx PRO

Besides converting arrays and promises to Observables, we can also convert other structures to Observables. This lesson teaches how we can convert any addEventHandler/removeEventHandler API to Observables.

rx tutorial about Creation operators: from, fromArray, fromPromise

Creation operators: from, fromArray, fromPromise

3:41 rx PRO

The of() operator essentially converted a list of arguments to an Observable. Since arrays are often how we structure list of things in JavaScript, we should have a way of transforming arrays into Observables. This lesson teaches how you can convert from Arrays to Observables, from Promises to Observables, and from Iterators to Observables.

rx tutorial about Creation operator: of()

Creation operator: of()

2:06 rx PRO

RxJS is a lot about the so-called "operators". We will learn most of the important operators, one by one. In this lesson, we will see our first creation operator: of().

rx tutorial about Observables can complete

Observables can complete

1:48 rx PRO

The Observer object has the functions next() and error(). In this lesson we will see the other (and last) function available on observers, complete(), and its purpose.

rx tutorial about Observables can throw errors

Observables can throw errors

1:39 rx PRO

Whenever we are writing code, we need to remember that things may go wrong. If an error happens in a function, that error will be thrown. Errors can also happen in Observables, and in this lesson we will see what is the API for throwing and catching them.

rx tutorial about Observables (push) compared to generator functions (pull)

Observables (push) compared to generator functions (pull)

3:21 rx PRO

Observables are almost like functions, but allow you to return many values. There is another concept in JavaScript (ES6), called Generator Functions, which do something very similar. In this lesson we will see what Observables and Generators have in common, and how they differ.

rx tutorial about Observables are almost like Functions

Observables are almost like Functions

6:43 rx PRO

This lesson introduces the concept of an Observable. We will see how similar it behaves to a function and what is the fundamental difference between them.

rx tutorial about Let's learn RxJS

Let's learn RxJS

1:00 rx

This lesson is to kickstart our course on RxJS Observables and their operators. Know what is the purpose of this series and which RxJS version we will use while learning.

rx tutorial about Creating Observable From Scratch

Creating Observable From Scratch

14:17 rx

Get a better understanding of the RxJS Observable by implementing one that's similar from the ground up.

rx tutorial about Sharing Streams with Share

Sharing Streams with Share

4:00 rx PRO

A stream will run with each new subscription added to it. This lesson shows the benefits of using share so that the same stream can be shared across multiple subscriptions.

rx tutorial about Basic DOM Rendering with Subscribe

Basic DOM Rendering with Subscribe

1:06 rx PRO

While frameworks like Angular 2 and CycleJS provides great ways to update the DOM and handle subscriptions for you, this lesson shows how you can still do basic subscribe blocks and manually update the DOM on your own.

rx tutorial about Resubscribing to a Stream with Repeat

Resubscribing to a Stream with Repeat

2:04 rx PRO

When you complete a stream, there’s no way to restart it, you must resubscribe. This lesson shows how repeat comes in handy to resubscribe after a stream has completed.

rx tutorial about Refactoring CombineLatest to WithLatestFrom

Refactoring CombineLatest to WithLatestFrom

2:17 rx PRO

This lesson shows why it’s preferable to using withLatestFrom instead of combineLatest in certain scenarios.

rx tutorial about Timer and Input Recap

Timer and Input Recap

2:54 rx PRO

This lesson recaps everything we’ve covered about building a timer stream, and input stream, and how we’ve combined all their parts together.

rx tutorial about Logging a Stream with Do

Logging a Stream with Do

1:34 rx PRO

To help understand your stream, you’ll almost always want to log out some the intermediate values to see how it has progressed during its lifespan. This lesson teaches you how to use do to log values in the middle of the stream without having an impact on the rest of the stream.

rx tutorial about Handling a Complete Stream with Reduce

Handling a Complete Stream with Reduce

1:21 rx PRO

When a stream has completed, you often need to evaluate everything that has happened while the stream was running. This lesson covers how to use reduce to collect values and total up a “score” of this simple game.

rx tutorial about Completing a Stream with TakeWhile

Completing a Stream with TakeWhile

1:19 rx PRO

When you need to total up everything that has happened in your stream, you need to a way to tell your stream that it is “done”. This lesson covers how to use takeWhile to complete a stream.

rx tutorial about Adding Conditional Logic with Filter

Adding Conditional Logic with Filter

1:01 rx PRO

Often you only want values to proceed through your stream if they meet certain criteria, just as if you were using an if statement in plain JavaScript. This lesson shows you how to use filter on your stream to only push the values that you need through your stream.

rx tutorial about Combining Streams with CombineLatest

Combining Streams with CombineLatest

3:08 rx PRO

Two streams often need to work together to produce the values you’ll need. This lesson shows how to use an input stream and an interval stream together and push an object with both values through the stream.

rx tutorial about Getting Input Text with Map

Getting Input Text with Map

1:46 rx PRO

By default, Inputs will push input events into the stream. This lesson shows you how to use map to convert the input event into the text you actually want.

rx tutorial about Refactoring Composable Streams in RxJS

Refactoring Composable Streams in RxJS

4:44 rx PRO

Refactoring streams in RxJS is mostly moving pieces of smaller streams around. This lessons demonstrates a simple refactoring by requiring the StopWatch to be more configurable.

rx tutorial about Handling Multiple Streams with Merge

Handling Multiple Streams with Merge

2:59 rx PRO

You often need to handle multiple user interactions set to different streams. This lesson shows hows Observable.merge behaves like a "logical OR" to have your stream handle one interaction OR another.

rx tutorial about Changing Behavior with MapTo

Changing Behavior with MapTo

2:32 rx PRO

You often need streams to trigger different behaviors on the data based on which streams triggers. This lessons shows how to use mapTo to pass functions into the scan operator and have completed control over you data.

rx tutorial about Displaying Initial Data with StartWith

Displaying Initial Data with StartWith

1:06 rx PRO

You often need to render out data before you stream begins from a click or another user interaction. This lessons shows how to use startWith to set the initial output before you trigger your stream.

rx tutorial about Updating Data with Scan

Updating Data with Scan

2:10 rx PRO

You often need to update the data flowing through the stream with custom logic based on what you need to output. This lesson covers how to use scan for collecting and updating the outputs as your stream progresses.

rx tutorial about Stopping a Stream with TakeUntil

Stopping a Stream with TakeUntil

4:10 rx PRO

Observables often need to be stopped before they are completed. This lesson shows how to use takeUntil to stop a running timer. Then we use the starting stream and the stopping stream together to create a simple stopwatch.

rx tutorial about Starting a Stream with SwitchMap

Starting a Stream with SwitchMap

5:48 rx

As developers, we tend to carry over ideas from past experience and try to reapply them to something new. This lesson teaches you about why you should usually favor switchMap over subscribe and why thinking about subscribe as an event handler can lead to problems.

rx tutorial about Using Observable.create for fine-grained control

Using Observable.create for fine-grained control

3:55 rx PRO

Sometimes, the helper methods that RxJS ships with such as fromEvent, fromPromise etc don't always provide the exact values you want & you end up having to do extra work to force them into the shape you require. For more fine-grained control you can use Observable.create which allows you to project only the values which matter to you.

rx tutorial about Reacting to multiple inputs using RxJS's combineLatest

Reacting to multiple inputs using RxJS's combineLatest

7:36 rx PRO

There are certain situations in which you’ll want access to the latest values from multiple Observables whenever any one of them produces a value. This is exactly what combineLatest was designed for, and in this lesson we’ll use it to build up an image url that requires values from 3 different inputs - triggered every time any one of them change.

rx tutorial about Overview of Cycle.js

Overview of Cycle.js

2:52 rx

This lesson shows what can be learned next as a continuation of this course, and gives a recap on the core concepts: main for pure logic, drivers for side effects, run() to connect main and drivers, sources for read effects, sinks for write effects, and nesting Cycle.js apps to work as components.

rx tutorial about Exporting values from components through sinks

Exporting values from components through sinks

3:18 rx

Our app is not yet a BMI calculator, because it only has two sliders, but doesn't show the calculated BMI number. In this lesson we will learn how to export any stream from a child component and use it in the parent component, in order to display the BMI calculation on the DOM.

rx tutorial about Isolating component instances

Isolating component instances

4:26 rx

We added classNames to pre-processing and post-processing steps when calling the LabeledSlider, in order to instances independent of each other. It would be better if we could hide these steps away. This lesson introduces the isolate() helper function to achieve that.

rx tutorial about Multiple independent instances of a component

Multiple independent instances of a component

5:48 rx

Once we have a labeled slider component inside the main function, we should be able to create another labeled slider. This lesson teaches how to accomplish that, and make sure those two instances work independently of each other.

rx tutorial about Using the component in the main() function

Using the component in the main() function

2:42 rx

We have made a Cycle.js app for generic labeled slider which can be configured through props, but how can we reuse it in other Cycle.js apps? This lesson shows how we can embed any Cycle program inside a larger Cycle program in a very simple manner.

rx tutorial about Our first component: a labeled slider

Our first component: a labeled slider

7:09 rx

We are starting to get a better architecture for these UI apps. But we still have a problem of repeating code for the sliders, since they share so much in common in looks and functionality. This lessons shows how we can create a generic labeled slider as a main() function receiving properties as sources.

rx tutorial about Model-View-Intent pattern for separation of concerns

Model-View-Intent pattern for separation of concerns

3:55 rx

We built the BMI calculator all inside one function: main(). As apps scale, we don't want main() to grow. We need an organized pattern where each function focuses on doing one thing. This lesson shows how we can easily refactor the main() function into three parts: Intent, Model, and View.

rx tutorial about Body-Mass Index calculator built in Cycle.js

Body-Mass Index calculator built in Cycle.js

7:19 rx

So far we have been writing very small apps in Cycle.js. Let's start growing the size of the apps we build. This time, we will see how to build a simple Body-Mass Index Calculator.

rx tutorial about Using the HTTP Driver

Using the HTTP Driver

8:10 rx

Let's see next how to use the HTTP driver to generate requests and capture responses. We will build a small app to fetch a single piece of data from a REST server and display that on the DOM.

rx tutorial about An interactive counter in Cycle.js

An interactive counter in Cycle.js

5:37 rx

This lesson shows how we can create a more interactive app: a counter display with buttons to increment and decrement it. This reveals how we can use the RxJS scan() operator to remember past values and keep state.

rx tutorial about Hello World in Cycle.js

Hello World in Cycle.js

5:45 rx

Now you should have a good idea what Cycle.run does, and what the DOM Driver is. In this lesson, we will not build a toy version of Cycle.js anymore. Instead, we will learn how to use Cycle.js to solve problems. We will start by making a simple Hello world application.

rx tutorial about From toy DOM Driver to real DOM Driver

From toy DOM Driver to real DOM Driver

4:32 rx

This lessons shows how we are able to easily swap our toy DOM Driver with the actual Cycle.js DOM Driver, a more solid, more flexible, more efficient implementation.

rx tutorial about Hyperscript as our alternative to template languages

Hyperscript as our alternative to template languages

2:18 rx

Usually we use template languages like Handlebars, JSX, and Jade to create. One simple way we can create our own template language is to write a function that returns these objects for us. This lessons shows how we can use these functions as a DSL to create our DOM description objects.

rx tutorial about Fine-grained control over the DOM Source

Fine-grained control over the DOM Source

2:48 rx

What if we wanted to change the behavior of our app reset the timer every time the mouse hovers over it? Currently we only support clicks, and they are hard coded in the DOM Driver. This lesson will introduce DOMSource.selectEvents(), a way of making the DOM Source rich and allowing the main() function to determine which read effects it needs.

rx tutorial about Making our toy DOM Driver more flexible

Making our toy DOM Driver more flexible

4:56 rx

Our previous toy DOM Driver is still primitive. We are only able to send strings as the textContent of the container element. We cannot yet create headers and inputs and all sorts of fancy DOM elements. In this lesson we will see how to send objects that describe what elements should exist, instead of strings as the DOM sink.

rx tutorial about Use the Cycle.js run() function

Use the Cycle.js run() function

3:39 rx

Our application was able to produce write effects, through sinks, and was able to receive read effects, through the DOM sources. However, the main function only gets the DOMSource as input. This lessons shows how we can generalize main to receive an object of sources, containing all kinds of read effects that we can use.

rx tutorial about Read effects from the DOM: click events

Read effects from the DOM: click events

5:45 rx

So far we only had effects that write something to the external world, we are not yet reading anything from the external world into our app. This lesson shows how we can change the DOM Driver to return a "DOM Source" representing read effects, such as click events. We will leverage that to create an interactive application.

rx tutorial about Introducing run() and driver functions

Introducing run() and driver functions

3:16 rx

The last part of the code we wrote is neither logic nor effects. It is code which ties together logic (main) with effects. We can encapsulate that in a run() function. This lesson shows how we can structure these pieces together, and generalize effect handling with "drivers".

rx tutorial about Customizing effects from the main function

Customizing effects from the main function

1:40 rx

How can we show one string on the DOM, and a completely different string on Console log? This lesson shows how we can make our main function return multiple Observables, each one targeted at a different type of effect.

rx tutorial about Main function and effects functions

Main function and effects functions

2:29 rx

We need to give structure to our application with logic and effects. This lessons shows how we can organize our code into two parts: main() function for logic, and effects functions for effects.

rx tutorial about Separate logic from effects in Cycle

Separate logic from effects in Cycle

3:49 rx

This lesson is the first in an introduction to Cycle.js. We will see how to build from scratch a toy version of Cycle.js. See how to use RxJS to create simple web apps, and how to separate logic from effects.

rx tutorial about Event Delegation with RxJS

Event Delegation with RxJS

6:17 rx PRO

Event delegation is an extremely powerful technique. It allows you to use a single event handler to listen to events on any number of child elements. It also has the added benefit of working with dynamically added elements without even a single line of additional code. Libraries such as jQuery offer this feature right out of the box, but with RxJS and the fromEvent helper, we’ll need to utilise the selector function to achieve the same result. NOTE: The element.closest method shown in this video required a polyfill for older version of IE which can be found here https://github.com/jonathantneal/closest

rx tutorial about Yolk (An RxJS UI Library) in 7 Minutes

Yolk (An RxJS UI Library) in 7 Minutes

6:48 rx

Yolk is a small library that works in tandem with RxJS to render handle events and render out HTML using JSX. If you already understand RxJS, Yolk is a very simple addition to your front-end toolbelt. If you're just learning RxJS, Yolk is also an excellent way to practice using Observable and figuring out how they work together by building familiar UI applications.

rx tutorial about An overview of RxJS reactive concepts

An overview of RxJS reactive concepts

2:14 rx PRO

This video gives an overview of the concepts of reactive programming we saw during this series, and explains how reactive programming can provide true separation of concerns.

rx tutorial about Use cached network data with RxJS

Use cached network data with RxJS

7:44 rx PRO

In this lesson, we learn how to build the final feature of our user interface: how to use the cached network response to replace a suggested user when the user clicks on the 'x' close button for that user.

rx tutorial about Share Network Requests with RxJS merge

Share Network Requests with RxJS merge

3:34 rx PRO

This lesson teaches how to control whether network requests are cached or are pessimistically re-executed, with the help of the RxJS merge operator.

rx tutorial about Clear data while loading with RxJS startWith

Clear data while loading with RxJS startWith

6:28 rx PRO

Let's fix a small UI glitch that was occurring on startup and whenever the refresh button was clicked. In this lesson we will see how to avoid common bad habits of imperative programming, and how to use reactive programming to keep the complete dynamic behavior of a value specified in one convenient place.

rx tutorial about Send new requests from refresh clicks in RxJS

Send new requests from refresh clicks in RxJS

5:07 rx PRO

In this lesson we learn how to fetch new data whenever the refresh button is clicked. This lessons starts to give us a feeling of how is it to develop reactive applications in RxJS.

rx tutorial about Render on the DOM with RxJS

Render on the DOM with RxJS

5:22 rx PRO

Learn how to take data from a network response and display it on the DOM using RxJS reactive event streams.

rx tutorial about Use RxJS Async Requests and Responses

Use RxJS Async Requests and Responses

7:14 rx PRO

In this lesson we start building a small UI widget: suggestions box displaying users to follow in Github. We will learn how to perform network requests to a backend using RxJS Observables.

rx tutorial about Reactive Programming - Why choose RxJS?

Reactive Programming - Why choose RxJS?

4:05 rx PRO

This lesson helps you think in Reactive programming by explaining why it is a beneficial paradigm for programming. See how reactive programming helps you understand the dynamic behavior of a value evolving over time.

rx tutorial about Use an event stream of double clicks in RxJS

Use an event stream of double clicks in RxJS

4:36 rx PRO

See a practical example of reactive programming in JavaScript and the DOM. Learn how to detect double clicks with a few operators in RxJS. We will use .bufferWhen to accumulate events into an array to determine if a double click occurred.

rx tutorial about Understand Reactive Programming using RxJS

Understand Reactive Programming using RxJS

4:31 rx

This lesson introduces Reactive Programming using RxJS in simple terms, with a concrete example and no scary terminology.

rx tutorial about Error Handling in RxJS

Error Handling in RxJS

5:12 rx PRO

Get your code back on the happy path! This lesson covers a variety of ways to handle exceptions thrown by Observables in RxJS. Operators covered are: catch, onErrorResumeNext, retry and retryWhen

rx tutorial about Introduction to the ConnectableObservable and using publish().refCount() in RxJS

Introduction to the ConnectableObservable and using publish().refCount() in RxJS

3:56 rx PRO

An RxJS cold Observable can be made hot by declaring it with .publish().refCount(). What does publish() do? What does refCount() do? This lesson introduces the ConnectableObservable, and how to use it with publish and refCount.

rx tutorial about Aggregating Streams With Reduce And Scan using RxJS

Aggregating Streams With Reduce And Scan using RxJS

3:47 rx PRO

What is the RxJS equivalent of Array reduce? What if I want to emit my reduced or aggregated value at each event? This brief tutorial covers Observable operators reduce() and scan(), their differences and gotchas.

rx tutorial about Demystifying Cold and Hot Observables in RxJS

Demystifying Cold and Hot Observables in RxJS

3:50 rx

Have you ever been caught by complications surrounding Cold and Hot Observables with RxJS (Reactive Extensions for JavaScript)? Worry no more, there is only one "catch" to understand, and then the whole issue will make sense to you when developing reactive applications.

rx tutorial about RxJS - map vs flatMap

RxJS - map vs flatMap

2:35 rx

What is the difference between map and flatMap? How do you take an Observable of Observables and output a single stream? This lesson is a quick look at map and flatMap and how they relate.

rx tutorial about Toggle A Stream On And Off With RxJS

Toggle A Stream On And Off With RxJS

3:52 rx PRO

This lesson covers how to toggle an observable on and off from another observable by showing how to use a checkbox as a toggle for a stream of data.

rx tutorial about Stream Processing With RxJS vs Array Higher-Order Functions

Stream Processing With RxJS vs Array Higher-Order Functions

3:49 rx PRO

Higher order Array functions such as filter, map and reduce are great for functional programming, but they can incur performance problems. This lesson illustrates how stream processing with RxJS can save you from these pitfalls.

rx tutorial about Throttled Buffering in RxJS

Throttled Buffering in RxJS

3:41 rx PRO

Capturing every event can get chatty. Batching events with a throttled buffer in RxJS lets you capture all of those events and use them responsibly without overloading a subscriber downstream.

rx tutorial about RxJS Observables vs Promises

RxJS Observables vs Promises

6:53 rx

Let's look at some of the basic features of RxJS Observables as asynchronous primitives, by comparing them to their cousins, Promises.

rx tutorial about What Is RxJS?

What Is RxJS?

2:31 rx

RxJS Observables represent a collection of values over time, and can be accessed in familiar ways similar to arrays. RxJS can be thought of as underscore or lodash for asynchronous operations!

rx tutorial about Creating An Observable with RxJS

Creating An Observable with RxJS

6:53 rx

Let's learn the basic anatomy of an RxJS Observable by creating one from scratch. In this lesson, we create a simple Observable. It covers handling asynchronicity, emitting values, observable completion and error handling.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?