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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
340
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
430
Digitization部 紹介資料
sansan33
PRO
1
6.8k
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
170
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
260
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.3k
Meshy Proプラン課金した
henjin0
0
240
Tebiki Engineering Team Deck
tebiki
0
24k
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
140
ZOZOにおけるAI活用の現在 ~開発組織全体での取り組みと試行錯誤~
zozotech
PRO
4
4.8k
SREじゃなかった僕らがenablingを通じて「SRE実践者」になるまでのリアル / SRE Kaigi 2026
aeonpeople
6
2.1k
(金融庁共催)第4回金融データ活用チャレンジ勉強会資料
takumimukaiyama
0
120
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
140
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
Facilitating Awesome Meetings
lara
57
6.7k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
エンジニアに許された特別な時間の終わり
watany
106
230k
A designer walks into a library…
pauljervisheath
210
24k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
55
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
220
Docker and Python
trallard
47
3.7k
Between Models and Reality
mayunak
1
180
Measuring & Analyzing Core Web Vitals
bluesmoon
9
750
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!