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
Randy Lien
March 23, 2015
Programming
120
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
190
Django Girls 2015 - HTML
randylien
1
180
Django Girls 2015 - CSS
randylien
1
130
React.JS Conf & f8
randylien
1
220
Introduce Flux & React in KKBOX
randylien
6
440
What is the next step for a front end beginner
randylien
1
96
Understand front end developer
randylien
2
210
Introduce Flux & React in practice
randylien
8
460
UI Engineering Introduction
randylien
0
60
Other Decks in Programming
See All in Programming
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
200
3分でわかるatama plusのQA/about atama plus QA
atamaplus
0
120
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
330
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
570
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
830
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
180
Go_College_最終発表資料__外部公開用_.pdf
xe_pc23
0
130
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
290
Running Swift without an OS
kishikawakatsumi
0
380
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
270
iOS機能開発のAI環境と起きた変化
ryunakayama
0
170
「効かない!」依存性注入(DI)を活用したAPI Platformのエラーハンドリング奮闘記
mkmk884
0
310
Featured
See All Featured
Being A Developer After 40
akosma
91
590k
Embracing the Ebb and Flow
colly
88
5k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.1k
The Curious Case for Waylosing
cassininazir
0
290
Skip the Path - Find Your Career Trail
mkilby
1
100
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
The agentic SEO stack - context over prompts
schlessera
0
740
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Speed Design
sergeychernyshev
33
1.6k
Accessibility Awareness
sabderemane
0
94
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
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