Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Flux + React
Search
Oursky Limited
June 23, 2015
Programming
1
390
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
290
Other Decks in Programming
See All in Programming
LLM Çağında Backend Olmak: 10 Milyon Prompt'u Milisaniyede Sorgulamak
selcukusta
0
140
AIコーディングエージェント(NotebookLM)
kondai24
0
240
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.1k
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
780
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
4
1.3k
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
460
TestingOsaka6_Ozono
o3
0
180
Patterns of Patterns
denyspoltorak
0
360
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
280
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
220
Go コードベースの構成と AI コンテキスト定義
andpad
0
140
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
370
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
0
640
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
51
46k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
Paper Plane
katiecoart
PRO
0
44k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
91
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
210
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.1k
Mind Mapping
helmedeiros
PRO
0
39
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Highjacked: Video Game Concept Design
rkendrick25
PRO
0
250
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.7k
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