Ladies back and we're going to see now, Hurricaine, take all this information from Ari, from Ed,
take all this information and say by using props, OK, by using props in order to add a new list set
of this array, which is in our states, but we cannot use a state.
Props excuse me.
We cannot use props between cars and from AIDS because from it is not a child component of cars from
it is directly its components.
We've approved of up to this reason why you can see we have these dots that is open is from open.
We have a from each other.
So the desire is to make from Edds its heart components of car components like the design is to avoid
the system.
As you can see, the at is just below the table, the table, which is the the car components, the
car components.
OK, and if you try to come here, we have this on every time we click.
We are calling.
This is from paint and we are as we are calling this, it's a function in order to update this boolean
to true or false, in order to close or paint our thumb.
So we are going to Greifswald.
This the states is open through.
Let us grab these BRIGNAC cards and bring it in our car chase in the air you can see away from it is
just after this table is can secure and we are going to pass it here and here you can see a from Ed's
not that is not imported in our Ricardo.
There's reason why we have this eral from add is not defined is we must restore.
In parts, we're going to say in part.
From Ed, from.
Chef.
From from like this, from the problem solved.
And if you come here, you click on it.
So no, wait, wait, because we have to use props.
No state, because it's from open is a state which is in the power components and now we have to use
props.
So in order to use props, make sure to pass your props in cars because cars is here, like cars is
here.
And we we need to say props, props like this.
And we must take these props, which this is from open in our approach is we are going to pass this
here and we are going through to court.
We can say this does state say that is open like this and wants to make here and click here.
And it's Ritwik.
Perfectly, very good.
And not we have made from ads.
It's all components of, uh, cars components.
OK, format is now eight components of cars components.
That means we can easily use props system to make transfer of these different data.
OK, in order to add, uh, a new list in my car, which is our area in our state, let us make our
approach, as you can see here, if it's here.
A very good.
OK, very good.
So I'm going to invest you something instead of putting it out a court here, we can create a function.
We are going to call this function aides, car handler.
So make sure to do that like this.
It was you want to see in the future what is the importance of this function.
Instead of doing like this, we are going to create a Edds Carrenza function.
We are going to take all these the these sets data.
We are going to grab all these.
And we are going to passport here in sight.
States.
That these.
Lucht is.
And here to say you're going to say this, that it can't handle very good Latisse, it's Ritwik perfectly,
if I tried to click here the same thing, we have the same thing.
So make sure to put it in it.
Function like.
So I think that we're finished.
Let us be taken from it.
So the desire is to come in archeologists and in our ecology.
Yes, we are going to create a new function that's we're going to call it a new car and we're going
to say it can't handle the function that's we're going to create.
Let us create this function just after the dead, let's function, we're going to say AIDS.
Carl.
That is.
It will be a never function.
But dysfunction is going to have an.
Three parameters.
The first is going to be branes, the second is going to be Collo and the it is going to be price.
As you can see, and the idea, no problem, so and we are going to aid in other states, in other data
in our state that we do not call list IGY and that initial there is going to be three to ensure there
is going to be the and the last item, the last value of the value of our last item.
By default, we are going to say less is going to be equal to three like this.
And let us be clear in that we are going to call dysfunction heds Carhenge.
Once we click, for example, let us come here.
This is we have car.
Hear from Ed, it is coming from Ed.
This is all from Ed, so the desire is to call this function once we click on this button, so we need
to transfer dysfunction.
To take this functio, to translate this dysfunction, which is Ebtekar handler from Kali's, which
is a parent's component to the phone at the dais, which is the cell components.
OK, so what are we going to do?
We are going to take Ed's car and I'm going to pass it.
Is it and I'm going to to pass it like a parameter.
It props in my car and it might from Adso here I'm going to say Ebtekar, the name of it is going to
be Ebtekar and this perhaps will call disease these dots.
Uh, head Ed currently, which is the function that we have in our cost to do this, and here I'm going
to take this, perhaps I'm going to copy these props and I'm going to come in from outside in order
to receive these props.
OK, once I say click this, that validation Hendrickx, it is a function that we have here and we are
going to call.
These props here, so you're going to say these are not props.
Dods, Ebtekar.
As you can see, Ebtekar is a prop which is in we have created our cars to test in order to call the
car into a function because we are going to make our ading calls here.
If we want to add some, for example, something in orate my car, which is in our state, we are going
to put all codes here and then we are going to transfer this function from the parents component to
its components, which is format's in order to take all this input that we are editing a form which
is here in our input.
So as you can see, I have tried to call this.
So make sure to put it like this, because you are going to specify that your props is a function like,
as you can see, Ebtekar, and here we have this dot, Ebtekar, Ebtekar, and there is a function.
And if you want to take this Ebtekar function and transfer this function in a components while calling
your your props, which is here, make sure to put brackets to specify that it is a function.
Otherwise you're going to get error, as you can see here.
OK, latte's and later Straight-faced for two to make a console like here.
Where he's at Kandra.
Yes, here we are, yes, here, here, and I can see.
We are.
Going to AIDS.
And you can't eat this function, this.
OK, and if I tried to make sure that means it is big for our agencies, that means if I click on these
spots on.
Validates here if I click in the spots on.
I'm going to call this function validation handler and validation tenderer is here, this is validation
Hanzawa and word instead of validation.
Instead we call these props, which is Ebtekar, and once we begin cardoon chase and see what we have
to see this perhaps this is these props and these props calls, the ads, Enzler, in order to display
this message, this council solid as big here, come here and click on Validate.
We are going to add new car in this function.
Very good.
So the desire is to make our modifications here because we have branes color in price.
And as you can see, we have three parameters.
We are going to back away from those days and puts all this parameter by using our states like we are
going to take the states from our inputs and put it in our Ebtekar, which is our props.
And this Ebtekar props Aysgarth or.