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
Immutable, Performance and Component Communication
Search
Randy Lien
March 23, 2015
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Immutable, Performance and Component Communication
React.JS TW fifth meetup
Randy Lien
March 23, 2015
More Decks by Randy Lien
See All by Randy Lien
The ideas of Clojure - Things I learn from Clojure
randylien
0
210
Django Girls 2015 - HTML
randylien
1
270
Django Girls 2015 - CSS
randylien
1
210
React.JS Conf & f8
randylien
1
240
Introduce Flux & React in KKBOX
randylien
6
460
What is the next step for a front end beginner
randylien
1
120
Understand front end developer
randylien
2
220
Introduce Flux & React in practice
randylien
8
490
UI Engineering Introduction
randylien
0
74
Other Decks in Programming
See All in Programming
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
520
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
130
ActionController meets Protocol Buffers
sorah
1
780
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
180
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
220
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
130
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.7k
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
200
Next.js: The final boss of Web Performance
guaca
0
380
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
360
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
500
Modernizing iOS Apps
seyfoyun
0
150
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
WCS-LA-2024
lcolladotor
0
970
Scaling GitHub
holman
464
140k
Docker and Python
trallard
47
4.3k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
480
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
47k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
A designer walks into a library…
pauljervisheath
211
25k
Thoughts on Productivity
jonyablonski
76
5.4k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
360
Transcript
Immutable Performance Randy Lien @React.JS TW 第五次⼩小聚
About Me • @randylien • Front end developer
Agenda • Immutable • Performance • Components Communication • Conclusion
Functional Programming
None
Why Immutable? • Immutable data has no side effect! •
Shared mutable state is the root of all evil - Pete Hunt • You will not get hurt by yourself or someone
None
Why Immutable? (cont.) • Immutable.js is fast enough and memory
optimisation • Why Om is faster ? Data or Value is immutable in Clojure/ClojureScript • Immutable + PureRenderMixin
Simple Made Easy
Performance
Performance • Pure Component (prop & state) • shouldComponentUpdate •
Don’t update when its the same
Performance (cont.) • Container Component Pattern • Container Component as
Data Layer • Data fetching • Component is all about its behaviour • Testing Container or Gallery Container
Components Communication
How to Communicate • Parent - Children • Use Callbacks
• No relationship • Global event hub • Flux • Codecademy • Adapter, broadcast • Channel (CSP) • Cursor (react-cursor)
None
Conclusion
Conclusion • Embracing Immutable data for the future (JavaScript) development
• Componentize your User Interface • Loose coupling your component • Container Component • General Component • You can pick the suitable solution for your needs
None
Conclusion(cont.) • Watch Simple made easy • Try Clojure/ClojureScript
FAQ