And now we're going to integrate states in our cars, OK, custodies, instead of using this like this,
we are going to use states, OK, as you can see, we have a difference in shares value and we are going
to use the states instead of using.
Instead of using using it like this, OK, we are going to use it.
So by using states, we are going to court the map function and we can access our data that we have
in our states and we can display dynamically our different components are car components.
And Rignot, I'm going to remove all this.
I'm going to leave only the only one components and I'm going to remove also these categories this year
in which I have the other lines of cards and I'm going to create states.
Just come here.
I'm going to say states.
I want to say state is going to be a courtroom and I'm going to say my cars and my cars like this and
it will have.
A military type in.
OK, an array, and here I'm going to say I'm going to have the.
The IG is going to be equal to one the first elements.
The second is the for the first first index and the second feeds is going to be branes actis branes
here in a safe Toyota.
Are to say or so, caller, the caller is going to be like.
We have also ordered a feed, which is the price we can't pay the price we're going to set, for example,
to fifty thousand dollars and sure, I'm going to copy and I'm going up past three times, two times
here and here.
I'm going to have thirty thousand dollar twenty.
And here I'm going to stand inside to two to three.
And here I'm going to have Mercedes's.
Mercedes.
I'm going to have your Mercedes like this.
The car is going to be equal to green.
Green.
And here the car is going to be to rate very good and the desire is to display or just dynamically in
our table.
So ladies back here and we are going to be using the map function.
As you can see, we are walking in their seats.
If we want to integrate, to write the devil scripts codes, make sure to open your Kolubara like this
and we are going to access in our states.
I can't eat out my car, which is in our state's, Standring said.
These are states that make cars like this and I'm going to call the map function and here I'm going
to say car, OK?
It is like a forest slope.
And here I'm going to say I'm going to create my error function, as you can see here.
And I'm going to say like this in the site.
I'm going to call the return function and then I can't return these components.
And it's really the map function will iterates.
Our states are in my car states, OK?
And by default, if I try to make sure you can see I'm going to get it three times because it detects
that in my cars, which is in our state, has got three index.
And the reason why you can see it will display these components three times.
And then the desert is to make this dynamic by using this object, which is car.
OK, and what are we going to say here?
Are we going to say.
We got called car notes Brynn's.
Here we are going to say.
Cartloads.
Collo.
Here we are going to see how.
Dods.
Price that is actually Tendler like this, and if we trace back, you can see we have Toyota, Mercedes
and Toyota and here in the teens we have Mazda.
Yes, marks the.
Have Toyota, Mercedes, master, have black, green.
I can't click here, you have clicked on the edit spots on you have clicked on the button.
Very good.
So I think that it was a very important for easy to create your state in your car, to chase cars,
to chase and make or you not need, OK.
And you can see here in reality, we must have it near ear about the irony about the key.
Because if it's right, yes.
If you try to reload, you want to have one in each or at least should have a unique key and make sure
to come here.
And a unique key here.
We are going to use IGY.
You can use the index or you can use also the idea because the idea is unique also.
And what's required.
Do we are going to call the we are going to say we are going to call the the K, OK, the key attributes
and we are going to say car, not Heidi in order to solve this problem.
OK, you can see the problem is solved here.
And if you try to reload, no problem.
This error is for Bouchra because I'm not connected to the Internet.
So it is not right to say you're so very good and very easy.
And we have already solved this problem with our functions, which is a behance this button.
OK, and we are going to continue through the next video.