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
React's Lost Socks: Where Did I Put that Compon...
Search
Adam Conrad
March 26, 2019
Programming
0
150
React's Lost Socks: Where Did I Put that Component?
This talk aims to add structure for production-ready React applications. Hopefully.
Adam Conrad
March 26, 2019
Tweet
Share
More Decks by Adam Conrad
See All by Adam Conrad
Code review in JavaScript
acconrad
0
660
The Dos and Don'ts of CBRA
acconrad
0
73
A-Frame and You
acconrad
0
44
UX and Performance
acconrad
0
59
SX - Startup Experience
acconrad
0
72
Other Decks in Programming
See All in Programming
SQL Server 2025 LT
odashinsuke
0
200
AIエージェントの設計で注意するべきポイント6選
har1101
6
3.2k
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
870
Patterns of Patterns
denyspoltorak
0
1.2k
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
1.9k
gunshi
kazupon
1
140
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
340
CSC307 Lecture 01
javiergs
PRO
0
680
2年のAppleウォレットパス開発の振り返り
muno92
PRO
0
190
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
390
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
100
CSC307 Lecture 02
javiergs
PRO
1
770
Featured
See All Featured
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Building the Perfect Custom Keyboard
takai
2
670
KATA
mclloyd
PRO
33
15k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
140
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
220
Being A Developer After 40
akosma
91
590k
It's Worth the Effort
3n
188
29k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
310
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
420
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
Transcript
React’s Lost Socks Where did I put that component?
None
None
(Everything in its right place)
Who in the h*ck are you??
@theadamconrad
Why are we here?
React deserves structure
None
None
None
Such segmentati on
Such segmentati on Lol wut tests
Such segmentati on Lol wut tests Are u too good
for ur home
Such segmentati on Lol wut tests Are u too good
for ur home
None
None
None
None
Some prereqs
Some prereqs
None
CCU Pattern
CCU Pattern MVC for the front-end
CCU Pattern MVC for the front-end Component
CCU Pattern MVC for the front-end Component => Model Container
CCU Pattern MVC for the front-end Component => Model Container
=> Controller Utility
CCU Pattern MVC for the front-end Component => Model Container
=> Controller Utility => View
None
Prereqs For real apps React (duh) Apollo & GraphQL React
Router Styled-components Formik Typescript (optional)
None
0. Set up routes
None
1. Add a page/route
None
None
2. Add a component
None
None
3. Add tests (you know you want to)
None
None
4. Component too big? Split it up
None
None
None
5. Component doing too much? Add a utility
None
None
None
6. Nested containers? Not a problem!
None
None
None
None
None
7. Writing data? We got that too!
None
None
None
None
None
8. App doing too much? Split it up!
None
9. THERE IS NO STEP NINE
None
In summary
In summary Touching data? CONTAINER
In summary Touching data? CONTAINER Passing data? COMPONENT
In summary Touching data? CONTAINER Passing data? COMPONENT Adding logic?
UTILITY
None
Kthnxbye. questions?