Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Flux + React
Search
Oursky Limited
June 23, 2015
Programming
430
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
580
SSH Can
oursky
1
360
HTTP/2
oursky
0
400
watchOS2
oursky
0
390
Common QA issues
oursky
0
260
Complex is better than complicated
oursky
0
330
Clean code again
oursky
3
430
KiriKiri x O2 x NVLMarker
oursky
0
290
git_workflow.pdf
oursky
0
330
Other Decks in Programming
See All in Programming
AI-Powered Domain-Driven Design
ziobrando
0
380
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
120
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
340
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
140
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
730
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
140
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
200
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
870
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
320
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
130
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
8.5k
Inertia Rails: The One-Person Framework with React & Friends
skryukov
0
380
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
500
Skip the Path - Find Your Career Trail
mkilby
1
280
Docker and Python
trallard
47
4.2k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
510
Six Lessons from altMBA
skipperchong
29
4.6k
The SEO Collaboration Effect
kristinabergwall1
1
610
Designing Powerful Visuals for Engaging Learning
tmiket
1
630
Evolving SEO for Evolving Search Engines
ryanjones
0
350
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Optimising Largest Contentful Paint
csswizardry
37
4k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
Speed Design
sergeychernyshev
33
2.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