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
15
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
470
Hack FaaSter: Leveraging Docker and OpenFaaS for fun and offensive (security) profit
0xdevalias
0
300
Other Decks in Technology
See All in Technology
ガバメントクラウドでのランサムウェア対策
techniczna
0
290
データエンジニアこそ組織のオントロジーに向き合うべき — 問いに答えるAIから、事業を動かすAIへ
gappy50
7
2.8k
Power Automateアップデート情報
miyakemito
0
290
BigQuery を検索ソースとした AI Agent の作り方って 〇〇 通りあんねん
satohjohn
0
140
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
0
140
AIがAPIを書く時代に、私たちは何を設計すべきか
nagix
0
170
オートマトンと字句解析でRoslynを読む
tomokusaba
0
130
クラウドセキュリティ入門 ~安全なクラウド利用のための基礎知識~
lhazy
0
1.1k
plamo-3-translateの開発
pfn
PRO
0
220
20260608_Codexの可能性_ノンプログラマー向け_大城追記
doradora09
PRO
0
670
Escolhendo LLMs na Prática: Lições Reais em Busca Agêntica no Mercado Livre —TDC 2026 Floripa
jpbonson
0
110
AI駆動開発は個人技からチーム戦へ:組織でAIを使いこなすための実践設計
moongift
PRO
0
350
Featured
See All Featured
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
72
41k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
420
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.7k
BBQ
matthewcrist
89
10k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
Chasing Engaging Ingredients in Design
codingconduct
0
250
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
430
Into the Great Unknown - MozCon
thekraken
41
2.6k
Building AI with AI
inesmontani
PRO
1
1.1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
430
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!