Youframeworkscomingouteverydayandyoudon't know, Like, whatshould I learn?
Whatshould I follow?
Whatshould I needtoapply?
Whatdowehavetoapply?
Whatwehavetolearnon.
Soatsomepoint, westartkindoffallingjust a fewpeopleonTwitterbecause, I don't know, maybeweheardthemtalkinginoneofftheconferencesorweread a reallycoolmediumarticlefromthem, andsowe'renotfollowingthesepeople.
Butsomehowthisisjust a verysmallgroupofpeopleon, sowekindofendupin a bubblebecausethesepeoplefolloweachother.
Andbackinthedayitwasverycommonthatthebirdoff a personthatwaslike, Lordor I don't knowsomebodywhohadmoneyWaasYeah, hearlouderandbetterAndtheiropinionmatteredmoretopeoplethan, let's say, from a poormonkorsomeotherworkeronthestreetonDhe.
So, um, justwhatwedonormallyinourapplications, wecombinedstuffondhe.
Um, I approached, justlikewiththreedifferentthings.
First, I triedCSSvanilla, seeAssessmentbackpack.
Then I triedCycomponentsbyusingprops, and I alsotried, um, sidecomponentsbyusingtheextentsothere's noextent, butyoucantakeyourprimarybuttonandthenatanotherthingtoitandextendit, andthenitissueourprimaryinactive.
So I don't knowifyoucanseethis.
So, um, I letitallrenderinthebrowser, andthey'renotthatfarapart, so, umnah, missed.
Okay, youknowwhat I giveuponthatcoollocationForsome, likemoregenericcomponents I createarelikespacewhereitputthemlike a componentfolderondhe.
Thenbecause I alsoneedtohave a relationsonthisverybasiccomponent, I starttoimportthemondheatmoreCeltsthem, like I have a normalripper, andthentheycreate a gallerywrapperonitjustniceandbreaks a farm.
So, um, thatkindofkidsafeyoufromtwospecificselectors I mean, itstilldoesn't preventyoufrombatsorpartysuccess, butatleastyourownCSSlooksnicerthanokay, sothentheprobablyhardestthingandsufferdevelopmentnexttocenteringstuff.
Yeah, okay.
Naming.
Namingisreallyhard.
Whatdoyoumeanwiththat?
Somaybeoneofyoualsohavehadthatyouhave a buttonthathas, like, a Brazilianclassnamesonit.
Youmaybeslurred, likeverynicewithyourself, Whichthisoneclass, maybe a secondclassyoumodifier, maybeevenyouspend.
Butsomehowthenextmorning, yourdesignercomesinandgivesyoulikethisunicorn, andthenyou'relike, Oh, ok.
Now I actedclose, unicorntomybutton.
Okay, good, good.
Yeah.
Socomponentsas a settheygeneratetheclassendsforyou.
Andi, I havealsoseensomethinglikethat, butnotourfunctions.
But a lotofifelse's.
And I don't knowaboutyou, butifyouaskme.
I don't wanttomaintainthisbecauselikeadding a newvariationtherewouldmean, like, addingAndyouiformaybebreakingalltheotherifsor I don't know, howwouldyouremovelike a variationoffthatHowcanyoueasilytellwhatstylistapplied?
Somaybesomeonecantellmewhy I didn't prefixthemondefault.
I don't know, buttheydecidedagainstit.
Okay, um, let's lookatsomemoreclassicstuff.
Let's look a normalCSSorsauceinthisinthishiss, wherehavecreated a buttonandaddedjusttheclasseslike I wouldusuallydowithprimaryAndioverwritingbyinactiveondhe.
Um, thisisaboutitComprisestwo.
Everybodyhasseenthisalready, so I cankillyou.
Telllikewhichclassiscausingwhichstyle?
Justnicefordebugging, I wouldsay.
Andalsomaybeforidentifyingwhere I shouldprobablyoptimizemystyle.
Okay, butprops, I wanttohaveprops.
Pleasegivememyprospect.
Okay, Maybe I havesomething.
Howaboutbestofbothworlds?
SomaybesomeofyourValerie, Thatpsychcomponenttriestocreate a higherordercomponent, whichistoshitinreacthigherordercomponents.
Solet's dosomehigherarcticcomponent.
Solet's create a higherordercomponentfor a buttonondhe.
Thenwejustlikegiveittothecomponentandreturn a buttonondhealsosomethingthatwecandonowwhichdiecomponentdoesn't withtheprocess.
Wecandefinecroptypesondefaultprops.
Um, soeverybodythatwantstoreuse a componentwehavedone, Forexample, Buttonknowsexactlywhattheycangiveaspropon, andwe'llget, like, meaningfulwarninganderrormessagesinthe D bugger.
Wedneday's throwsomethingwrongatit.
Justreallyvice.
I believewe'llkeep.
Sothat's somerice.
Itwas a lotoftalkingaboutceases.
Um, okay, therenderedblockingpart.
Wetalkedaboutitinthebeginning.
WecansolveitwithCycomponents.
Youcansolveitwith a backpack.
Soandthenyouwouldprobablyneedtolookatwhatisgoingtobemoreperformanceforyouinthelongrun, thentheconventions, likeusing a designpatternlikeatomicdesignandnamingconventionslikethemhelpyouevenifyouareusingpsychopponents.
Dhewilldefinitelyhelpyouongettingridoff a lotoffyourproblemsonDhe, thenthelastthingisperhaps a really, reallyfancy, butthey'redangerousonmaybehardtobebackandmaintain.
So I wouldsayifyouwanttobootstrapsomethingveryquickbecauseyoudon't havetothinktoomuchaboutseizesarchitectureandeverything, justputitnexttoyourrenderstuffandyou'regoodtogo.
It's reallycool, then.
Yeah, whenyoudon't have a designer, areyouornoteasilyabletotalktothemandnotsayingthatyoudon't wanttotalktothem?
Um, yeah, that's onething I haven't talkedaboutyet, Butthemostawesomethingaboutah, thesitecomponentsapproachISSthatyoucansharethemwithyourreactnativeapplicationbecauserednativeapplicationsisnotsowellwithUlysses s.