Um, and I am a thepersonalopinionthatsovereigntyshouldbereturned.
Okay, sowhoam I?
I'm Lita.
Mypronounsair.
Sheherherhers.
And I'm aninstructorattheTuringSchoolofSoftwareandDesigninDenver, Colorado, where a nonprofitcodeschoolthatinsevenmonthstakesprofessionalswhoaretransitioningintotechandtrainshimtobejobreadyjuniordevelopers.
Thereason I'm qualifiedtogivethistalkisasaninstructor, I teachmystudentstheinsandoutsofJavascript.
I alsoteachmostlyreacted, mostly a reactdeveloper.
Soifthere's anylies I tellyouaboutviewandsvelte, I'm verysorry.
Andbecauselearningrequiresbothvulnerabilityandtrustwitheachother, I'llgofirstbybeingveryvulnerableandsharingwithyou a photoofmefromhighschoolandyoucanseethatyoungleaderwasverynerdy.
Uh, someofmyfavoritemoviesatthetimewerecluelessand 10 Things I hateAboutYouandEmpireRecords.
And I reallybelievethatteenmovies, thestoriesthey'reactuallytellingarejustaboutthelessonthatweallshouldlearn, whichispeoplearemorethanwhattheyseembecauseofthismessaging, thatseemslike a greatwaytostarttalkingaboutthesedifferentframeworksowecanreallydiginandgetpastour, uh, basicunderstandingofwhattheyare.
Okay, sowe'regonnabetalkingaboutreactandviewandsveltetodayandagain, it's gonnabefrom a veryhighlevel.
SosomethingwithreactReactislikethebig, swaggeringjockwhoeverybodyknowsandlikeit's reallyeasytobelike, Oh, they'rekindoflike a bully.
Debuggingisstilloneofthethingsthatthat I foundhasbeenprettylacking.
Thereisn't a lottogoon, partlybecauseit's a compiler.
It's kindof a littlebitof a blackbox.
However, thatbeingsaidthespelldocumentationsupersolid, like, reallyeasytogetintopropsofthisfeltteam, becausethewaythey'vewrittenthedocumentationontheonboardingtutorialreallyaccessible.
Butright, Okay, let's actuallytake a brieflookathoweachoftheseframeworksisgoingtoaccomplish a similartask.
Okay, sowhat?
Let's saywe'vebuilt a smallappforfiguringoutwho's goingtobehomecomingroyaltyattheupcomingdance.
Um, thisiswhatwewantittolooklike.
Wehavebuttonsaswevote.
Likeourlittleindicatorschangedupdateaswego.
Sohave a coupleofthingswritten.
PleaseexcusetheveryNewDelhicode.
I wrotethisveryfast.
They'reallfouroftheseexamplesin, like, twohours.
So, uh, okay, we'rejustbasicreact.
You'llseethat I'm using a classbasedcomponent.
I have a briefhooksversionofit, but I'llleavethatmostly.
Okay, uh, votingisjustusingsetstatetoupdateourstateproperties, andwehave a renderwhichisjustshowingourJSXthatwe'rereturning.
Ifyou'renotfamiliarwithreact, youcanseethattheJSXiseachteam l thatallowsustointerpretJavaScriptbyusingthesesinglecurlybracestocaptureourstatementsandexpressions.
Cool.
That's that.
Andthen, let's seeHearsitwithhooks, Samething.
Exceptinsteadof a classbasedcomponent, it's a functioncomponentusingthatusestatemethodwhichitcomesfromreactitselfonthatallowsustohookupthiscomponentstatewithoutusingourconstructor.
Great.
Allitdoesisjustcleanup a littlebitofthisintaxbecauseinsteadofneedingtodolikethis, stopvotesorthestartstatethatvotesthisSTdotreact, wecanjustsayreactandvotes, um, with R D structureddeclarationofthesevariables, butverysimilar.
Theinterestingpartthat I thinkwegettohearisthatthescripttagfelthasmade a reallystrongefforttojustallowustowriteregularjobscriptwith a littleextrasyntaxispossiblebecausethey'reoftheopinionthatmoresurfaceareawehaveinourapplications, themoreopportunityforbugsarelikebugstocomein.
Um, I justgot a briefgraphofhereyoucouldtake a lookat.
Ultimately, what I wantyoutotakeawayfromthistalk, though, isnotlikefiguringoutwhichone's gonnabethebestonetobuildwith, um, butthinkinginsteadabouthoweachofthesethey'redifferentfromeachother.
Yes, theyhavetheirdifferences.
Theyhavedifferentusecases.
They'rebestiescases.
A differentonboardingprocessisbutatheart, eachoneofthemisdesignedwith, uh, performanceandusersatisfactionanddevelopersatisfactionandmind.
Evenifyouare a staunchlikeviewdeveloperandyou'renevergonnaspinupanythinginspeltorreactsomethingthat I gainedoverthecourseofwritingthistalk, um, I wasjustthatkindofuncomfortable, sweatyfeelingofbeinganadolescentwhodoesn't knowanything.
Anditwassurprisinglyrefreshing.
Itwasgreatlearningspellwhichrunsverydifferentlythananyofthemreact, whichistheframeworkofmostcomfortablewithitandthatitputmebackinthatspaceofbeing a rookie.
Uh, which I trytofightbecause, like, I donotknoweverything.
Andsobeingconfrontedwith a frameworkthat I legitimatelyonpaperfactuallydon't knowanythingabout, uh, itbroughtbacktolifeofthe A lotofthecuriosityandthequestionsandthefreak, thefreedomthatbeing a rookieprovides.
So I wouldstronglyencourageyou.
Evenifyou'relikespeltisnotthenewthing.
It's nevergonnabe a heavyhitterlikereactingview.
Definitelystill, tryitout.
Playwithitbecauseit's reallyfuntobejustlike a knownothingteenagerwith, like, yourwholefutureaheadofyou.
So I youcansendmequestions, comments, criticismslikeverbal P R's like, Pleasedothat.
Pleasehelpme.
SenatemediumsonTwitteratlidacodes.
Ifyoucan't remembermyname, I totallygetitSoyoucanjustgotothatpersonfromthethingdotcom, andthatcomestomypersonalcontactpage.