Jan-Niklas Wortmann

Practice makes perfect - when it comes to RxJS

Stop memorizing RxJS operators. Start building a reactive mindset to master complex async logic and build UIs from scratch.

Practice makes perfect - when it comes to RxJS
#1about 5 minutes

Developing a reactive mindset for RxJS

Learning RxJS is like learning a new language, where practicing to develop a reactive mindset is more crucial than memorizing every operator.

#2about 6 minutes

Building a swipe gesture for a carousel

Implement a swipe gesture by merging mouse and touch events, using `switchMap` to track movement, and `takeUntil` to detect the end of the gesture.

#3about 3 minutes

Adding keyboard navigation to the carousel

Use `fromEvent` on the document to listen for keydown events, then filter for specific keys and map them to navigation actions.

#4about 4 minutes

Creating an auto-play timer with reset logic

Implement an auto-advancing carousel timer using `interval`, which resets on user interaction with `takeUntil` and restarts with `repeatWhen`.

#5about 6 minutes

Recapping the reactive carousel implementation

A step-by-step review of how observables for swipe, keyboard, and timer events were composed and merged to create a fully functional carousel.

#6about 5 minutes

Exploring improved typings in RxJS 7

RxJS 7 introduces better type inference for union types in conditional logic, `concat`, `reduce`, and when filtering with the `Boolean` constructor.

#7about 3 minutes

New animation and composition operators in RxJS 7

Discover the new `animationFrame` observable for creating smooth animations and the `concatWith` pipeable operator for improved code readability.

#8about 2 minutes

Practice examples for mastering RxJS

To solidify your reactive mindset, try building common UI features like drag-and-drop, typeahead search, or long polling with RxJS.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
CH
Chris Heilmann
Dev Digest 109 -Egg-citing things…
As we are heading into the Easter break, here are some things to spend some time on. There's resources on improving the performance of your code and you hear from the winners of CODE100 Amsterdam what it was like to be on stage. Also, hang tight as t...
Dev Digest 109 -Egg-citing things…

From learning to earning

Jobs that call for the skills explored in this talk.