Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Flux + React
Search
Oursky Limited
June 23, 2015
Programming
1
400
Flux + React
Oursky Limited
June 23, 2015
Tweet
Share
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
510
SSH Can
oursky
1
320
HTTP/2
oursky
0
360
watchOS2
oursky
0
340
Common QA issues
oursky
0
210
Complex is better than complicated
oursky
0
290
Clean code again
oursky
3
380
KiriKiri x O2 x NVLMarker
oursky
0
250
git_workflow.pdf
oursky
0
300
Other Decks in Programming
See All in Programming
Implementation Patterns
denyspoltorak
0
170
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
150
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
580
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
450
CSC307 Lecture 05
javiergs
PRO
0
470
ThorVG Viewer In VS Code
nors
0
690
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
1k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
130
CSC307 Lecture 02
javiergs
PRO
1
760
余白を設計しフロントエンド開発を 加速させる
tsukuha
3
180
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
250
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
1.1k
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
82
Become a Pro
speakerdeck
PRO
31
5.8k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
79
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
110
HDC tutorial
michielstock
1
330
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Into the Great Unknown - MozCon
thekraken
40
2.2k
WENDY [Excerpt]
tessaabrams
9
35k
Technical Leadership for Architectural Decision Making
baasie
0
220
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Transcript
Flux + React Rick Mak May 2015
One of the pain DOM
Direct DOM = painful = BUG
Age of Backbone Model View
Works Great in small scale
more Model; more View
It is SLOW
Let Optimise it
None
Say Hello to VirtualDOM
Model Virtual DOM DOM Interact with VirtualDOM Data Data Event
Event
setState will trigger render Define your view
React calculate the diff • Set state will mark the
red dot • React will find out the blue dots • Re-render with only the modified dom Source: https://facebook.github.io/react/img/blog/react-diff-tree.png
Fast without spaghetti
Let focus on Logic
State inconsistency Very common in single page webapp
State inconsistency • Server sync not sync with client state
• item missing • duplicate item • State between client not sync • State panic with poor internet
Flux fix that
It is a pattern A pattern enforcing unidirectional data flow
Flux is not framework
View Action Store Dispatcher Server
Unidirectional data flow • Faster debug • Faster on boarding
• Faster iteration • Less cascading effect
Thank you