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
16
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20190130 - React - displayName - Lightning Talk
A lightning talk I gave in 2019 on React displayName usage.
Glenn 'devalias' Grant
January 30, 2019
More Decks by Glenn 'devalias' Grant
See All by Glenn 'devalias' Grant
Bug Bounty Hunting on Steroids [DEF CON 26]
0xdevalias
0
300
Gophers, whales and.. clouds? Oh my!
0xdevalias
0
480
Hack FaaSter: Leveraging Docker and OpenFaaS for fun and offensive (security) profit
0xdevalias
0
300
Other Decks in Technology
See All in Technology
同じWAFが、攻撃の“形”は弾く── 正当な“形”の不正は通す
kuroneko13
0
260
AI開発に用いられるHPC技術について
gpuunite_official
0
190
Model Studio CLI × Token Plan
maigo999
0
200
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
トークンマネジメントでAIにとって働きやすい環境を実現する
hikaruegashira
0
130
Oracle MCP Servers Explained
thatjeffsmith
0
320
AI画像認識を活用したゲーム内決済処理検証の自動化
gree_tech
PRO
0
100
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
290
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
Bits Agent Builder の⼊⾨と活⽤事例
nulabinc
PRO
0
260
AI for Science時代を切り開く、政府の次世代HPC戦略の展望
gpuunite_official
0
130
도구에서 동료까지: 10년차 AI 스타트업의 AI 적응기
inureyes
PRO
1
300
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
180
The Cult of Friendly URLs
andyhume
79
7k
Building Adaptive Systems
keathley
44
3.2k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Visualization
eitanlees
152
17k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Technical Leadership for Architectural Decision Making
baasie
3
510
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
Designing for Timeless Needs
cassininazir
1
450
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!