Soweneedtochange a coupleofthingsnowbecauseremember, wehaveour a p i kestoredinthisconstantrightthere.
Soinyes, sixtemplateliteralSzeweareallowedtoinjectthevariablesinsideor a string.
Sotodothat, we'regoingtogoaheadandcopythis a pikeyconstant, andwe'regoingtoinjectitrighttherewherethekeyisrequired.
Sotoinsert a template, thattrollallyoudoisyoutopinthedollarsignandthen a coupleofKalibracesandthenwhatevergoesinsidethesecoloredbraces, itbasicallywhatwewanttodo.
So, inthiscase, wejustwanttoinjectthisap a keyvariablesagain.
I copiedherthat I couldearlierandall I'm gonnadowithinthereis I'm goingtogetridofthiskeyword, and I'm alsogonnagetridofthisstatebecausethestatedoesnotexistinthiscomponent.
Okay, It's lookingpromising, forthemostpart, but I stillkindofdon't likethewayit's looking, So I probablymistypedsomething, So I thinkthatclassnameisrecipequestions.
Sothisis a nicewayof V s code, youknow, tellyouthatthisisthestuffthatyouhaven't usedyet.
Souseit.
Okay, Sonowif I justcreate a newcomponentand I'm gonnacallit a routerand I'm gonnasetitto a stateless, functionalcomponentson, let's justmakeitreturnsomeJess X.
S
Hello, everyone.
Subtitles and vocabulary
Click the word to look it upClick the word to find further inforamtion about it