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
React Performance: ONE WEIRD TRICK
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jamison Dance
April 29, 2016
Programming
1
190
React Performance: ONE WEIRD TRICK
How do you optimize React applications? WITH ONE WEIRD TRICK
Jamison Dance
April 29, 2016
Tweet
Share
More Decks by Jamison Dance
See All by Jamison Dance
Community for New Developers
jergason
0
62
Pop Culture, The Pendulum and Progress
jergason
0
120
Rethinking All Practices: Building Web Applications with Elm
jergason
2
200
The Future is Old - Functional Programming in JavaScript
jergason
1
260
Notes From The Future: Beyond Flux
jergason
0
110
nosql and mongodb: ¯\_(ツ)_/¯
jergason
0
150
Other Decks in Programming
See All in Programming
AIコーディングの理想と現実 2026 | AI Coding: Expectations vs. Reality 2026
tomohisa
0
790
ぼくの開発環境2026
yuzneri
1
290
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
120
CSC307 Lecture 14
javiergs
PRO
0
440
CSC307 Lecture 08
javiergs
PRO
0
690
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
310
今、アーキテクトとして 品質保証にどう関わるか
nealle
0
200
文字コードの話
qnighy
43
16k
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
2k
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
470
TROCCOで実現するkintone+BigQueryによるオペレーション改善
ssxota
0
110
朝日新聞のデジタル版を支えるGoバックエンド ー価値ある情報をいち早く確実にお届けするために
junkiishida
1
290
Featured
See All Featured
It's Worth the Effort
3n
188
29k
The SEO Collaboration Effect
kristinabergwall1
0
380
Are puppies a ranking factor?
jonoalderson
1
3k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
100
Speed Design
sergeychernyshev
33
1.6k
Ethics towards AI in product and experience design
skipperchong
2
210
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
970
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
120
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
150
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
330
Transcript
React Performance @jergason
BUY React Rally Tickets http://reactrally.com
React Performance
ONE WEIRD TRICK for speeding up your React applications
ONE WEIRD TRICK
ONE WEIRD TRICK Have a deep knowledge of React's rendering
model and JavaScript execution combined with familiarity with browser and React performance tooling.
ONE WEIRD TRICK Have a deep knowledge of React's rendering
model and JavaScript execution combined with familiarity with browser and React performance tooling and know some basic techniques of general optimization.
How React Works How Optimization Works Demo
How React Works
setState render render render
dispatch reducer render render render render render render
How Optimization Works
Rules of Optimization 1.Don't 2.Don't yet 3.Profile before optimizing http://c2.com/cgi/wiki?RulesOfOptimization
Optimization In React
Render will be called MANY TIMES
Two Options • call render fewer times • make render
faster
Demo https://github.com/jergason/slowloris
Resources • https://facebook.github.io/react/docs/perf.html • https://facebook.github.io/react/docs/advanced- performance.html • http://benchling.engineering/performance- engineering-with-react/ •
http://benchling.engineering/deep-dive-react-perf- debugging/ • https://github.com/reddit/reddit-mobile/issues/247