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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Oursky Limited
June 23, 2015
Programming
1
410
Flux + React
Oursky Limited
June 23, 2015
Tweet
Share
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
360
Common QA issues
oursky
0
220
Complex is better than complicated
oursky
0
300
Clean code again
oursky
3
390
KiriKiri x O2 x NVLMarker
oursky
0
260
git_workflow.pdf
oursky
0
310
Other Decks in Programming
See All in Programming
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
410
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
160
Windows on Ryzen and I
seosoft
0
410
How to stabilize UI tests using XCTest
akkeylab
0
140
CSC307 Lecture 15
javiergs
PRO
0
270
Understanding Apache Lucene - More than just full-text search
spinscale
0
140
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
180
20260228_JAWS_Beginner_Kansai
takuyay0ne
5
620
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
4.4k
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
1.4k
Java 21/25 Virtual Threads 소개
debop
0
280
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.1k
Featured
See All Featured
How to Talk to Developers About Accessibility
jct
2
160
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
120
GraphQLとの向き合い方2022年版
quramy
50
14k
The Spectacular Lies of Maps
axbom
PRO
1
650
Writing Fast Ruby
sferik
630
63k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
180
Designing Powerful Visuals for Engaging Learning
tmiket
0
300
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Bash Introduction
62gerente
615
210k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.5k
Deep Space Network (abreviated)
tonyrice
0
96
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
250
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