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
540
SSH Can
oursky
1
340
HTTP/2
oursky
0
380
watchOS2
oursky
0
370
Common QA issues
oursky
0
230
Complex is better than complicated
oursky
0
310
Clean code again
oursky
3
400
KiriKiri x O2 x NVLMarker
oursky
0
270
git_workflow.pdf
oursky
0
310
Other Decks in Programming
See All in Programming
Oxlintのカスタムルールの現況
syumai
5
990
Swiftのレキシカルスコープ管理
kntkymt
0
210
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
450
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
320
AIとRubyの静的型付け
ukin0k0
0
530
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
450
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
220
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
1.2k
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
730
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
490
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
0
110
さぁV100、メモリをお食べ・・・
nilpe
0
130
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.3k
Speed Design
sergeychernyshev
33
1.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
380
Balancing Empowerment & Direction
lara
6
1.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
550
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
210
Designing Powerful Visuals for Engaging Learning
tmiket
1
400
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
HDC tutorial
michielstock
2
690
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
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