paint-brush
React + Typescript + RxJSby@scott.lively
10,752 reads
10,752 reads

React + Typescript + RxJS

by Scott Lively5mJune 26th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Lately I’ve been trying out <a href="https://hackernoon.com/tagged/react" target="_blank">React</a>, <a href="https://hackernoon.com/tagged/typescript" target="_blank">Typescript</a>, and RxJS and so far I really like the result. The basic premise was to have a single observable library and connect that to React to update components. Then push all state and business logic to the observables. This comes from spending a lot of time with Redux (with added middleware), Recompose, and Reselect, then being frustrated in the large amount of libraries and boilerplate required to simply connect components to an observable and calculate derived state. I had the pleasure years ago to work with a very smart dev (shout out to Isaiah) on an Angular 1 project that used a simple home grown observable library for state management and everything worked remarkably well without using tons of libraries. This example is meant to recreate that concept with more modern tools. It is built around a todos list that displays the list of todos fetched from a server and allows users to add new todos to the list.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - React + Typescript + RxJS
Scott Lively HackerNoon profile picture
Scott Lively

Scott Lively

@scott.lively

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite