Sowewouldaddthatinandthen, inadditiontoournormaltobasically, insteadofournormalreactscriptstart, wewouldhave a startfor, like, react, nativeweb, andthatwouldbringup a reactnativecodein a Webbrowser, andwe'd beabletoworkonitlike a normalrackprojectatthesametime.
Wecouldalsousereactnativetwobringuptheproject.
Um, asanill s upforanandroidapp, likein a simulator.
SoJonHansensays, what's thebestplacetouse a switchstatementas a functioninsiderenderorinthereturn, theswitchwillloaddifferentChildrencomponentsbasedon a statechange.
Okay, that's interesting.
Mmm.
If I weredoingit, I don't knowthat I'vetriedtouse a switchstatementinsidetherenderornot, butitseemslikeinsidetherenderfunctionwouldbebetter.
Um, what I havedonebeforeisusedAh, turnErilikeouthereandtheturnEriwouldchangethestaterightthen, dependingonthevalueofstate, itwouldrenderthingsinheresotherewouldbesomethinglikeforthiscomponent, itwouldsaysomethinglike, I don't know, route.
Thisiscallitroute.
Um, wewouldsay, right, thisstate, thisstateroute, andthen I wouldsay, like, equals.
Let's justsayhome, Okay, let's saywehave a shrinkofhome, andnowwe'regoingtosay, umandAndthenweput a componenthere, andthenwhatthatwoulddoissay, Okay, iftherouteequalshome, we'regonnarenderthishomecomponent, andthenyou'd wrapeachcomponentinsomethinglikethis, butthevalueofthisstateroutewouldbedifferentforeachone.
Thenyouhaveyourswitchstatementuphere.
Thatchangesstate.
Sothatwouldessentiallyachievethesamething.
Youwouldadd a bitmorecode.
Um, butthenyouwouldn't put a switchstatementinthereturn, which I knowthisworks.