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
Immutable, Performance and Component Communication
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Randy Lien
March 23, 2015
Programming
130
0
Share
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
200
Django Girls 2015 - HTML
randylien
1
190
Django Girls 2015 - CSS
randylien
1
140
React.JS Conf & f8
randylien
1
220
Introduce Flux & React in KKBOX
randylien
6
450
What is the next step for a front end beginner
randylien
1
100
Understand front end developer
randylien
2
210
Introduce Flux & React in practice
randylien
8
470
UI Engineering Introduction
randylien
0
60
Other Decks in Programming
See All in Programming
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
1.1k
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
3
240
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
7
2.9k
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
1
430
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
240
PHPでローカル環境用のSSL/TLS証明書を発行することはできるのか? #phpconkagawa
akase244
0
380
inferと仲良くなる10分間
ryokatsuse
1
180
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
160
RailsTokyo 2026#4: AI様があれば、 Hotwireの弱点は消えるか?
naofumi
4
510
Firefoxにコントリビューションして得られた学び
ken7253
2
170
Agent Skills を社内で育てる仕組み作り
jackchuka
1
2.3k
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
280
Featured
See All Featured
It's Worth the Effort
3n
188
29k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
220
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
Between Models and Reality
mayunak
4
290
sira's awesome portfolio website redesign presentation
elsirapls
0
250
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Deep Space Network (abreviated)
tonyrice
0
150
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
ラッコキーワード サービス紹介資料
rakko
1
3.4M
Context Engineering - Making Every Token Count
addyosmani
9
900
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
150
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
910
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