Placeholder Image

字幕表 動画を再生する

  • guys we're doing and we'll come to a brand new video tutorial.

  • This is my You did, sir, Actually on the freak O camp itself.

  • My boot.

  • And hopefully you can interaction.

  • You draw in the story as a marshal.

  • You Dorian making this and created the application gonna do today.

  • So for this one we're gonna probably do is create really awesome and cool react weather application.

  • So I'm gonna just go had to stop by step by step from scratch, start up a project creating react application and create all the different components and stopping this.

  • Put them together with the CSS styles and different things actually to be handled on.

  • We are gonna go ahead and go through.

  • Quit eating a full weather application with Bristol AP eyes, and we're going to just go ahead and use some things.

  • Actually, some help from a P eyes actually public a Beyonce using the rest ful est.

  • It'd be a prize like this, a p i X.

  • You so we can get the weather data.

  • And the forecast for for probably a couple of days actually ended for Curren's, whether getter for any city we wants.

  • For example, we wants the current city that we are actually in.

  • And we could get a lot of different Dan option.

  • If you don't know me, this luxury might learn you upside his dot com and hope that you could go in and check out the general down there so we can have, like, millions of other stories like this really old and cold stories and stuff like that, other one for web developments.

  • So they're going to try to get start So the final application or the port So I'm gonna work on this is actually the thing that we try to achieve throughout this tutorial, So hopefully you can just go and imagine this in your head.

  • I've tried to put a prototype together in here just a quick one.

  • Using figure, Mama.

  • So for those of you who doesn't know figure, I think that's just like a prototype into you could just go to figure my dark army Pretty pretty nice for two brothers type into could go ahead and just going use it.

  • If even though you're not that much of your ex designer or something, it simplifies your life as a Web developer.

  • Russian.

  • It gives you a lot of over cool, awesome features that you can use to provide such an application.

  • So actually here we've got the weather out.

  • Tyler, we've got the location name.

  • It's gonna probably basically just your location name, like London or something with God's number of degrees or the actual currents weather.

  • And we've got, whether it's sunny or it's dark.

  • For example, it says it's my city is going to show a logo or an image off like darkness like a moon to show that we are shit out.

  • 90.

  • Otherwise, we show a son.

  • So we are you, my shit day and we sell them like even Sonny or with some clouds or partially clothed or something.

  • There's something specifically for weather application in the weather forecast and everything.

  • We could also have just simply this one, this little tiny Barney, and that those two stomachs are probably a location.

  • We can just go and click that and get a pop up on.

  • We can actually storage for a location.

  • We said the name of location and there we go.

  • The locations is gonna go out and change.

  • Jump wholly owned up in the background.

  • Gonna try to make a love that from scratch and hopefully actually enjoying that and get the experience behind creating are like a really Olsen application using reactive me that you are actually knew he still needs to actually full of the story and try to figure out how things are actually working behind the scenes and in the future, apart in here or the boredom bars, where we're gonna probably do it just like, you know, show the forecast.

  • With a couple of next days, like the four next days or something like this, you're gonna show what is going on the next couple of days, like Sunday.

  • Monday.

  • You got the point, actually, and the Celsius degrees we can use referred or Soviets.

  • I prefer Soviets in this case, like, you know, more details about the weather for this particular days, like whether it's sunny or cloudy or everything.

  • I got pretty much the point off how whether application works, so just go in and try to get it started for me.

  • Ask complication if you are a reactive, although you probably heard of ours who used creates react up the command line to the Lowe's, which creates quickly and sent up applications or reacts projects very, very easily without any hassles or problems or that much of configurations I'm gonna use creates react up.

  • So probably you need to open up, Chairman.

  • Only here.

  • Or you can even use CND If your windows uses human during here and you create a jacked up, I'm gonna put, um, whether up, okay, simple is that just type in this one, and it's probably just going to start creating for us.

  • And it downloads and resolve dependencies like the reacts react script and in different packages, all those us to do so And there we go.

  • The setup and the creation of the project has been successfully done.

  • Now we can discover to use our favorite teacher, Chu, start working on the application.

  • I'm gonna use video CD code.

  • It's just, you know, very wholesome and very good.

  • You can use whatever i d you pretty much like.

  • So I'm gonna just go inside of the weather up before that's has been clear for us from the creator reactor Officer I and was gonna use the code of the opening just typing code darts and opens this project on the Brandon.

  • You instance off video zero coat.

  • So waiting for just the projects, you, Leone and everything.

  • And hopefully everything pretty much worked.

  • Fine.

  • So first experts do whenever you created a re experience, especially using the create react topsy line is actually detested and try to just go ahead and start running the star script to see actually what is going on behind the seas.

  • So we just get rid of that really need any more.

  • I'm gonna open up a new terminal instance of the integrated criminal from Fisher Studio Code.

  • And, um okay, now it's trying to run the schedule.

  • Jeez and beyond one star.

  • So he, you know, make sure that the application has been setting up and created successfully without any problems or missing dependencies or something, so we can stop developing the application without any problems.

  • So I actually decided to start the development process of this particular application from the scratch by creating projects and show you everything going on behind the scenes.

  • So probably when people faces ears and doesn't know actually how to go or how to start or something like this.

  • So, yeah, they would have a problem and they would try to fix it by just, you know, falling out from from just the beginning from scratch.

  • And just to make you guys feel comfortable fulminate along this one on There we go.

  • So the service, actually starting with all your problems and being getting like should be through a penny here or Yeah, no exception are also everything hopefully works.

  • Be much fine.

  • Take a look.

  • The application is actually the mean up togs files, so we can actually use this for it's the main components.

  • Eyes being rendered.

  • Wait a couple of seconds, actually.

  • Chew make this actually running around, taking quite some time.

  • There we go.

  • And there we go with the application working in the boiler pal is actually running the lowering your problems or issues.

  • So now we've got to simply just go ahead and start working on the application.

  • So was starting off.

  • Just try to It's our application.

  • If take a look.

  • Gonna gonna use actually the prototype of lot.

  • Let me just do many years in previous years going on, I'm gonna create first the container or the actual main components that gonna passel the props to this particular Vienna.

  • So in this case, I'm gonna create, try and gonna create a new file and I'm gonna use some kind of A flocks like flocks.

  • States management's You probably familiar with this or not It just like a design patron for reacts applications that all those two past Deanna between props very, very easily as we know that you can only pass theater from a parent to a child, nor the vice versa thing, like passing it from a child to her parents.

  • So we actually need some global data to be Ass is from the old actual components that is being rendered in the hierarchy.

  • And the other hand, we could have, like a main upstate that holds the upstate actually off all components like the shirt upstate between all the different components of any component in the hierarchy.

  • Any components being rendered on our application can actually access is theater and alter the d.

  • N A.

  • And set the stage and changeable, different things.

  • So if you're really, really important thing to know, even though our applications is very basic straight to the point, it doesn't really need the flex design parent.

  • But I just wanna point you guys get you better use it in this one for you, Actually, guys.

  • So you can take later along the source code and just develop it, take it to the next level Admiral features to it and make it just a real word.

  • Whether applications So you can easily out of the features without any problems, whenever you find it's actually or g being built on top.

  • This design patron.

  • So I'm gonna need this, for example, is gonna be the store.

  • So why I'm naming it store because it stores the critical global upstate.

  • So, yeah, sort O J s is gonna be a normal components.

  • I'm just gonna go in and do, like, poor reacts gave from.

  • Well, yeah, and I'm gonna do Well, um, it's gonna be in a way that controlled I'm just gonna do export the fools on Try.

  • Okay, so it's gonna be class.

  • I'm gonna create a clause in here.

  • I'm gonna name a store, and he's gonna extend as normally, you and Jax don't components.

  • Okay, there we go.

  • That is gonna be having a constructor of something you could initialize any daniken passing props to the skin trump to structure, which is not really that much of a big deal, But you have still worth having in here.

  • We could have looking mean, upstaging you.

  • What she's like.

  • There's gonna be it.

  • So and I can give you a hand comments in this, like Amine states.

  • Okay, we can have rendered function and movie wants is all of the Children that's gonna be inside of that is actually or any Children that we're gonna pass do.

  • This one is gonna render it just inside the store.

  • We're gonna have passed to them.

  • The state we haven't hear whatever you have in here.

  • For example, try to put some dinner like the name or like, the application name, and I'm just gonna put application name is gonna be wither up.

  • So yeah, on.

  • And here we try to return whatever.

  • Like props stop Children think, but this doesn't actually how it works.

  • What you want is to take the state every single piece of data that is in son of this date are the statements were having is just going to pass it down into the hierarchies or whatever the child's gonna get it is gonna get it as a props.

  • So to do so we're gonna just use the help off props and Children alongside react clone elements function or the method that loses to clone elements very, very easily into components of passing the props down.

  • So here I'm gonna like return, and it's gonna be a malfunction.

  • Is gonna use react daunts Well, Children, And for this reactor, Children gonna use the map function.

  • So the malfunction you need to pass the Brevard child so we can do yeah, Children.

  • So we need to access the props.

  • I totally forgot about the thought may use, actually, status components on.

  • We can actually went to that here on DDE What I wish to use.

  • Well, we've got a serious issue here.

  • So clearly something is actually going on, but on God, I think we have to take a look at this one.

  • Components taking, actually Children.

  • Okay, so just to passing the Children my bad here.

  • So they start promised Children, and the next thing it takes a hold back with a child on, but we can use this, so yeah, boys drew enough keys right now, so you probably see me typing it really were here things and just stupid errors anyway, so here, we can use the child where we're not probably return for each single charge Gonna be passed into this.

  • We're gonna probably just surrender.

  • One single child is gonna be the up components that were gonna rendering us out of this.

  • So I'm gonna return and gonna return Like, um, yeah, clone elements and his clone elements.

  • It takes an actual element, which is gonna be the child.

  • So the child is actually a real word.

  • React involved elements, and he takes the second thing is clearly, see, here it takes whatever props you wanna pass into this child, and it just creates a brand new components with this promise being passed in Ju.

  • So the props you want as, for example, is actually the states that we having up there so I can easily need to meeting this estate.

  • I'm gonna do this, thongs states, and you make sure to mutate this using these expand symbol thing or the actual expend objects in traitor in here.

  • So just to like, you know, merge a knob.

  • Jax, this is an object with another objects and why I'm doing it here.

  • Just merging the state objects with an empty object so he can create a different object rather than ST.

  • So here, free trade just to passing the state, Just gonna pass in the reference of the state We don't want that wanna mutates the actual state and pass it down to the child so you can have the same props as we do for the actual state.

  • So it's gonna be simpler is out.

  • Everything here is gonna have the up name, whatever we adhere.

  • Just gonna be right over there.

  • So, yeah, it's pretty good pattering here.

  • Basically, No.

  • The best thing you can have you Can you have a reduction when the flocks flocks actually have many different ways to be implemented on.

  • So it's just very basic in a very efficient way I actually have and they use a lot of my other projects, so hopefully you can actually like him.

  • And everything is just simply the store door, Jess.

  • Now we can jump back into the abductee s probably off the whole rendering.

  • I don't need any of this, and they could just get rid rid of it.

  • And when it wants to say, need the styling.

  • So I'm just gonna put another final, so guys in here.

  • What is it?

  • Actually the store?

  • And so they also seem gonna put another folder named its ass is gonna hold our SAS files and for actually working with sass and in no jazz.

  • So or probably Cleary, act up.

  • You've gotta go install.

  • Know what to do.

  • So discouraging news.

  • So MPM install node dash sas makes to do this.

  • If you want to use less or something, you use the actual compiler for less.

  • But we want to use SAS just only for development purposes and just gonna install this for evil purposes.

  • No, actually, have been installed.

  • Success.

  • We know we can use this as very easy.

  • So I'm just gonna do it here quitting you found.

  • But I need this.

  • Probably just the SAS.

  • So it's just gonna be the main application style inside of this folder.

  • You can you can have a different ways to create that instructor is about Sam.

  • You know, the best thing for me.

  • So it's actually better to James this from J s to Jess.

  • X.

  • So visual recording l i d can actually recognizes as a real JSX fouls.

  • And he can actually activate some features first like emits.

  • And we can use some estimate features or GSX features in this one.

  • Or you can easy just going down here.

  • So the job scripts and search for react javascript and change it.

  • But I would like very much changed the name here.

  • And rename.

  • It's just adding GSX and clearly see the icon changes into recognizing GSX or Java scripts and react and probably gonna get another beer.

  • So, for Vince, we're gonna probably do is just simply go to the index gorgeous, and it doesn't actually recognize any advance.

  • It can just have the GSX in here, and everything should be much.

  • We're fine.

  • Oh, are you on?

  • Yeah, we've got a complete difference or for a situation that is actually happening from this, and I still can't quite figure out why, but yeah.

  • So if I try to keep me calm Panelist and be amongst on again on yet we've gone completely difference here, which is react.

  • Scripts are not define what?

  • Come, Mr Ayers.

  • Okay, so we're just tying up.

  • Just trying to fix this with enviable stall.

  • Um, Well, yeah, star script.

  • This sometimes happens when you actually configure our we created react up projects.

  • Then you actually installs Apollo Dependence is as begin just installed the node sas.

  • So it basically I don't know, some kind of really hard bunk.

  • It deletes the reaction script, Cherie.

  • It removes it from the back to Jason.

  • This is a really, really bad thing to you.

  • I should actually submit some issue or some other people, actually, some minute issue into the Actually, they get hot issues for the queer Reacts happened.

  • They can let DeVore prospectus as soon as possible because it's very, very annoying for the bulb in things in here.

  • Now, actually, everything is working too much fine.

  • Also installing the REAC scripts.

  • I don't know.

  • Just a serious bug anyway.

  • So just like in a rendering a living here, just just the purposes and he pretty much working fine with all your problems.

  • That's conspiracy in here.

  • We've got the react.