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
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
570
SSH Can
oursky
1
350
HTTP/2
oursky
0
400
watchOS2
oursky
0
380
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
280
git_workflow.pdf
oursky
0
330
Other Decks in Programming
See All in Programming
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
wkhtmltopdfの次どうするか問題2026
willnet
2
1.9k
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5k
ChromeでローカルLLM
ryu1013
0
140
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
150
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
JIS keyboard support in Omarchy
lef237
0
110
contenteditable と日本語入力に向き合う
colorful12
0
200
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
110
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
990
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
Being A Developer After 40
akosma
92
590k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
620
Automating Front-end Workflow
addyosmani
1369
210k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Optimizing for Happiness
mojombo
378
71k
Chasing Engaging Ingredients in Design
codingconduct
0
360
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Why Our Code Smells
bkeepers
PRO
340
58k
Evolving SEO for Evolving Search Engines
ryanjones
0
330
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