React/RxJs

Watch User Created Playlist (35)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Using Observable.create for fine-grained control

P

Fetch Data using the Cycle.js HTTP Driver

Modify and Track State in Cycle.js

Make Our Toy DOM Driver More Flexible

Use the Cycle.js run() Function

Read Effects from the DOM with Click Events

Read Text Input in a Cycle.js Hello World Application

Use Hyperscript in Cycle.js as an Alternative to Template Languages

Convert our Toy DOM Driver to the Cycle.js DOM Driver

Fine-grained Control over the DOM Source in Cycle.js

Reacting to multiple inputs using RxJS's combineLatest

P

Organize your Cycle.js Application into the Model-View-Intent Pattern

Organize Code in the Main and Effect Functions

Separate Logic from Effects in Cycle.js

Event Delegation with RxJS

P

Yolk (An RxJS UI Library) in 7 Minutes

P

Manage Multiple Observable Streams in Cycle.js

Overview of Cycle.js

Clear data while loading with RxJS startWith

P

Send new requests from refresh clicks in RxJS

P

Export Values from Components through Sinks in Cycle.js

Use RxJS Async Requests and Responses

P

Reactive Programming - Why choose RxJS?

P

Use an event stream of double clicks in RxJS

P

Render on the DOM with RxJS

P

Understand Reactive Programming using RxJS

Create a Generic Cycle.js Component

Use a Cycle.js Component in the main() Function

Use cached network data with RxJS

P

Customize Effects from the Main Function

Share Network Requests with RxJS merge

P

Use Multiple Independent Instances of a Cycle.js Component

Isolate Component Instances in Cycle.js

Generalize Effect Handling with Drivers in the run() Function

An overview of RxJS reactive concepts

P
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 Fetch Data using the Cycle.js HTTP Driver

Fetch Data using the Cycle.js 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 Modify and Track State in Cycle.js

Modify and Track State 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. We'll see how we can use the xstream fold() operator to remember previous values and combine them to create the next values. This is actually how you keep state in Cycle.js.

rx tutorial about Make Our Toy DOM Driver More Flexible

Make 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 with Click Events

Read Effects from the DOM with 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 Read Text Input in a Cycle.js Hello World Application

Read Text Input in a Cycle.js Hello World Application

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 Use Hyperscript in Cycle.js as an Alternative to Template Languages

Use Hyperscript in Cycle.js as an 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 Convert our Toy DOM Driver to the Cycle.js DOM Driver

Convert our Toy DOM Driver to the Cycle.js 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 Fine-grained Control over the DOM Source in Cycle.js

Fine-grained Control over the DOM Source in Cycle.js

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 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 Organize your Cycle.js Application into the Model-View-Intent Pattern

Organize your Cycle.js Application into the Model-View-Intent Pattern

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 Organize Code in the Main and Effect Functions

Organize Code in the Main and Effect 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.js

Separate Logic from Effects in Cycle.js

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 PRO

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 Manage Multiple Observable Streams in Cycle.js

Manage Multiple Observable Streams 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. We'll see how as our application grows there are three distinct sections: handling read effects, handling write effects, and handling internal state.

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 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 Export Values from Components through Sinks in Cycle.js

Export Values from Components through Sinks in Cycle.js

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 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 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 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 Create a Generic Cycle.js Component

Create a Generic Cycle.js Component

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 Use a Cycle.js Component in the main() Function

Use a Cycle.js 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 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 Customize Effects from the Main Function

Customize 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 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 Use Multiple Independent Instances of a Cycle.js Component

Use Multiple Independent Instances of a Cycle.js 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 Isolate Component Instances in Cycle.js

Isolate Component Instances in Cycle.js

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 Generalize Effect Handling with Drivers in the run() Function

Generalize Effect Handling with Drivers in the run() Function

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 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.

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