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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Adam Conrad
March 26, 2019
Programming
150
0
Share
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
More Decks by Adam Conrad
See All by Adam Conrad
Code review in JavaScript
acconrad
0
690
The Dos and Don'ts of CBRA
acconrad
0
79
A-Frame and You
acconrad
0
48
UX and Performance
acconrad
0
62
SX - Startup Experience
acconrad
0
77
Other Decks in Programming
See All in Programming
Making the RBS Parser Faster
soutaro
0
570
[RubyKaigi 2026] Require Hooks
palkan
1
240
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
120
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
690
感情を設計する
ichimichi
5
1.6k
Spec-driven Development: How AI Changes Everything (And Nothing)
simas
PRO
0
370
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
220
CDK Deployのための ”反響定位”
watany
5
880
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
370
Angular Signal Forms
debug_mode
0
120
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
150
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
290
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
We Are The Robots
honzajavorek
0
220
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
99
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
350
Leo the Paperboy
mayatellez
7
1.7k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
Optimizing for Happiness
mojombo
378
71k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Speed Design
sergeychernyshev
33
1.6k
Making Projects Easy
brettharned
120
6.6k
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?