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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Oursky Limited
June 23, 2015
Programming
420
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Flux + React
Oursky Limited
June 23, 2015
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
550
SSH Can
oursky
1
350
HTTP/2
oursky
0
380
watchOS2
oursky
0
380
Common QA issues
oursky
0
230
Complex is better than complicated
oursky
0
320
Clean code again
oursky
3
410
KiriKiri x O2 x NVLMarker
oursky
0
270
git_workflow.pdf
oursky
0
320
Other Decks in Programming
See All in Programming
スマートグラスで並列バイブコーディング
hyshu
0
290
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
370
Performance Engineering for Everyone
elenatanasoiu
0
270
コーディングルールの鮮度を保ちたい for SRE NEXT 2026 / keep-fresh-go-internal-conventions-sre-next-2026
handlename
0
140
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
460
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.3k
共通化で考えるべきは、実装より公開する型だった
codeegg
0
210
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
250
SLOをサービス品質の共通言語にするために 取り組んできたこと
wakana0222
0
480
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
220
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
150
OSINT for SRE: 学術論文とポストモーテムから探る システム障害の共通パターン / SRE NEXT 2026
tomoyk
1
3.5k
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
150
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
280
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
600
First, design no harm
axbom
PRO
2
1.2k
Mind Mapping
helmedeiros
PRO
1
280
We Have a Design System, Now What?
morganepeng
55
8.2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
370
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
410
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
460
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