This talk aims to add structure for production-ready React applications. Hopefully.
React’s Lost SocksWhere did I put that component?
View Slide
(Everything in its right place)
Who in the h*ckare you??
@theadamconrad
Why are we here?
React deserves structure
Suchsegmentation
SuchsegmentationLol wut tests
SuchsegmentationLol wut testsAre u too good for ur home
Some prereqs
CCU Pattern
CCU PatternMVC for the front-end
CCU PatternMVC for the front-endComponent
CCU PatternMVC for the front-endComponent => ModelContainer
CCU PatternMVC for the front-endComponent => ModelContainer => ControllerUtility
CCU PatternMVC for the front-endComponent => ModelContainer => ControllerUtility => View
PrereqsFor real appsReact (duh)Apollo & GraphQLReact RouterStyled-componentsFormikTypescript (optional)
0.Set up routes
1.Add a page/route
2.Add a component
3.Add tests (you know you want to)
4.Component too big? Split it up
5.Component doing too much? Add a utility
6.Nested containers? Not a problem!
7.Writing data? We got that too!
8.App doing too much? Split it up!
9.THERE IS NO STEP NINE
In summary
In summary Touching data? CONTAINER
In summary Touching data? CONTAINERPassing data? COMPONENT
In summary Touching data? CONTAINERPassing data? COMPONENTAdding logic? UTILITY
Kthnxbye.questions?