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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Glenn 'devalias' Grant
January 30, 2019
Technology
13
0
Share
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
290
Other Decks in Technology
See All in Technology
『家族アルバム みてね』における インシデント対応との向き合い方 / Approach incident response in Family Album
kohbis
2
230
イベントで大活躍する電子ペーパー名札 〜その3〜 / ビジュアルプログラミングIoTLT vol.23
you
PRO
0
160
テストコードのないプロジェクトにテストを根付かせる
tttol
0
210
TROCCOで始めるクラウドコストを民主化するためのFinOps
tk3fftk
1
250
類似画像検索モデルの開発ノウハウ
lycorptech_jp
PRO
4
990
A Harness for Behaviour: how to get AI to generate code that does what we intend, or "TDD in the age of AI"
xpmatteo
0
480
Kaggle未経験社員をメダリストに育てる「AIドラゴン桜」
lycorptech_jp
PRO
0
630
シンデレラなんかになりたくない!ガラスの靴が割れた時代にどう歩く?
nomizone
0
210
GitHub Copilot CLI の Rubber Duck 機能を使ってコーディングの品質をあげよう #techbaton_findy
stefafafan
2
1.2k
Python開発環境にハーネス適用を検討する
yuuka51
1
550
Geek Woman の育ち方 〜コミュニティとAIと〜
chicaco
0
440
Claude Codeですべての日常業務を爆速化しよう!
minorun365
PRO
16
15k
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
290
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
820
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
120
Optimizing for Happiness
mojombo
378
71k
Balancing Empowerment & Direction
lara
6
1.1k
Crafting Experiences
bethany
1
160
The Invisible Side of Design
smashingmag
302
52k
The Limits of Empathy - UXLibs8
cassininazir
1
340
Automating Front-end Workflow
addyosmani
1370
210k
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!