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
Jamison Dance
April 29, 2016
Programming
200
1
Share
React Performance: ONE WEIRD TRICK
How do you optimize React applications? WITH ONE WEIRD TRICK
Jamison Dance
April 29, 2016
More Decks by Jamison Dance
See All by Jamison Dance
Community for New Developers
jergason
0
68
Pop Culture, The Pendulum and Progress
jergason
0
120
Rethinking All Practices: Building Web Applications with Elm
jergason
2
210
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
160
Other Decks in Programming
See All in Programming
飯MCP
yusukebe
0
500
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
150
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
390
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
190
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.9k
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
6.3k
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
140
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
230
AI-DLC Deep Dive
yuukiyo
3
390
安いハードウェアでVulkan
fadis
1
960
事業会社でのセキュリティ長期インターンについて
masachikaura
0
250
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
580
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
240
Navigating Team Friction
lara
192
16k
Ruling the World: When Life Gets Gamed
codingconduct
0
190
Skip the Path - Find Your Career Trail
mkilby
1
100
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
490
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
220
How to Ace a Technical Interview
jacobian
281
24k
Are puppies a ranking factor?
jonoalderson
1
3.3k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
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