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
20190130 - React - displayName - Lightning Talk
Search
Glenn 'devalias' Grant
January 30, 2019
Technology
0
9
20190130 - React - displayName - Lightning Talk
A lightning talk I gave in 2019 on React displayName usage.
Glenn 'devalias' Grant
January 30, 2019
Tweet
Share
More Decks by Glenn 'devalias' Grant
See All by Glenn 'devalias' Grant
Bug Bounty Hunting on Steroids [DEF CON 26]
0xdevalias
0
290
Gophers, whales and.. clouds? Oh my!
0xdevalias
0
450
Hack FaaSter: Leveraging Docker and OpenFaaS for fun and offensive (security) profit
0xdevalias
0
270
Other Decks in Technology
See All in Technology
OCI技術資料 : OS管理ハブ 概要
ocise
2
4.3k
漸進的過負荷の原則
sansantech
PRO
3
420
3分でわかる!新機能 AWS Transform custom
sato4mi
1
260
Amazon ElastiCacheのコスト最適化を考える/Elasticache Cost Optimization
quiver
0
280
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
re:Inventで見つけた「運用を捨てる」技術。
ezaki
1
160
Claude Codeベストプラクティスまとめ
minorun365
52
29k
AI時代、1年目エンジニアの悩み
jin4
1
120
re:Inventで出たインフラエンジニアが嬉しかったアップデート
nagisa53
4
220
Introduction to Bill One Development Engineer
sansan33
PRO
0
350
「全社導入」は結果。1人の熱狂が組織に伝播したmikanのn8n活用
sota_mikami
0
580
Agentic Coding 実践ワークショップ
watany
41
28k
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
150
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
How to Ace a Technical Interview
jacobian
281
24k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
300
Paper Plane
katiecoart
PRO
0
46k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Leo the Paperboy
mayatellez
4
1.3k
How to make the Groovebox
asonas
2
1.9k
The agentic SEO stack - context over prompts
schlessera
0
610
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
Producing Creativity
orderedlist
PRO
348
40k
Skip the Path - Find Your Career Trail
mkilby
0
50
Transcript
React: displayName Because trying to debug a nest of Unknown
components is kind of meh..
Functional Components
React 16.6 https://reactjs.org/blog/2018/10/23/react-v-16-6.html
React.memo Like React.PureComponent, but functional! https://reactjs.org/docs/react-api.html#reactmemo
Memoized Functional Components
React Developer Tools
Memo -> Memo -> Unknown -> WTF?
displayName? https://reactjs.org/docs/react-component.html#displayname
Maybe not..? ES6 ‘Fat Arrow’ anonymous function Named function
Wrapping Display Name https://reactjs.org/docs/higher-order-components.html#convention-wrap-the-display-name-fo r-easy-debugging
memoWithDisplayName app/javascript/src/shared/react-helpers.js
memoWithDisplayName
Components.. withDisplayName(s)!
But how do I know when I need it?
But how do I know when I need it?
But how do I know when I need it? ESLint
ESLint: react/display-name https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
Thank you!