Back to React
summary
Argues that React components behave like stream transformers and demonstrates working examples: a timer and a debounced GIF fetcher implemented with observables/streams (RxJS) and a tiny createComponent helper under fifty lines that turns a prop stream into a view stream. Shows how the Elm architecture maps to React via an update/reducer + view pattern with nested actions, reports it reduces bugs and improves testability, but notes performance and ceremony tradeoffs and when setState remains simpler.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:25Andrew Clark
- 1:47Intro to Functional Programming
- 3:45React Components
- 5:04Purity versus Impurity
- 7:00Render Method
- 8:42Rx Marbles
- 9:30Scan
- 11:28Dom Driver
- 21:37Elm Architecture
- 22:51Update Function
- 24:54Actions inside Actions Pattern
- 27:10View
- 28:21Nested Pattern
- 30:40Disadvantages
related talks
27mEmbrace Reactive Programming in React and Vue with RxJS
35mReact + RxJS: A Match Made in Heaven
33mHow React changed everything
34mAre You Smarter Than a React Component?
27mI Heard React Was Good
59mDeveloping React Applications with Functional Components
34mI Heard React Was Good
01h 04mWhat makes React different?
