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
410
1
Share
Flux + React
Oursky Limited
June 23, 2015
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
530
SSH Can
oursky
1
330
HTTP/2
oursky
0
370
watchOS2
oursky
0
370
Common QA issues
oursky
0
220
Complex is better than complicated
oursky
0
300
Clean code again
oursky
3
400
KiriKiri x O2 x NVLMarker
oursky
0
260
git_workflow.pdf
oursky
0
310
Other Decks in Programming
See All in Programming
アーキテクチャモダナイゼーションとは何か
nwiizo
17
5k
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
120
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
230
Vibe NLP for Applied NLP
inesmontani
PRO
0
390
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
350
Feature Toggle は捨てやすく使おう
gennei
0
580
Laravel Nightwatchの裏側 - Laravel公式Observabilityツールを支える設計と実装
avosalmon
1
330
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
710
おれのAgentic Coding 2026/03
tsukasagr
1
140
Swift Concurrency Type System
inamiy
0
490
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
170
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
210
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.2k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
490
Practical Orchestrator
shlominoach
191
11k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
200
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
440
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Discover your Explorer Soul
emna__ayadi
2
1.1k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
New Earth Scene 8
popppiees
3
2.1k
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