Here and we are going to create a neural function like an arrow function in order to return.
Yes, an error function in order to return the brains of the products.
OK, so we're going to say car is going to be equal to car.
It is like if we can't, we have a car here and we're trying to say, we're going to say, you're going
to Chunka, OK, not.
Brent.
OK, don't he takes stuff, OK?
Heat index of.
In the course of events to target the failure, which is brings leaders like this and.
Greater or equal to zero.
OK, we are going to make this written.
You are going to take all this and put it in our records like this is put it in art class.
That means words when you filter when you two, three, four, Mercedez, your brain is going to be
equal to Mercedez and directly it will update your state, which is brains.
And because it will feature also what you are viewing in your head, what you are viewing it in your
in your browser.
If you thought you try to choose reasoning for Mercedes's, it will take those colors dot filter and
it will take the brains that we have defined it here from our events.
The target to value in that it will come in our car, which is an object of cars taking the brains and
say index of brains, brains.
It will look for this brain in inside of Oregon, our cars here by using these objects and using brains,
not index.
And yes.
Yes, here in the candidates brains, it's we look for our brains in a set of articles by using DeCock
objects and index of brains here, that means in those brains greater and greater than a greater than
equal to zero.
That's means you're going to filter from the.
Yes, you're going to feature from the index zero or more.
OK, yes, that means, for example, I have to filter it to products with a merciless brains.
That means I have this I have to index is the first index.
This is zero.
And the second is the one and reason why you can see we're going to have it marked.
Then we're going to have at least one index.
And if we're if we have a one index, that means the index is equal to zero.
So reason what we are going to filter from the index is zero and so on.
So here we are going to look for the brains instead of our cards and index of function.
We put the brain out here and say, you are going to take from the index to zero.
For example, in the case you have the only one element to filter, that's the index is equal to zero.
And if you have to the index that we have to index this, we have zero and one and three and so on.
So reason why we have this condition here and if I try to make here, if I try to reload this page and
if I click on nurser, this what we have here, Preben Kanata, property values and define it here.
The state cross-bred using that target list.
I think that you have seen this error targets.
You're going to excuse me.
Yes, I think that she is this program.
So let us first come here.
It does reload this page and click on Mercedes's social problem and image of undefined praecox.
Yes.
So we're going to do something here that is Fassel commands our cards.
Yes, here we are going to comment, first of all, we are going to commend the FAIGENBAUM, OK?
It has reloads, it has taken which have Mercilus here it is Cleek home to.
It's all you have to you to let us click on this one here, but needs something like this if it tried
to click on all Mercedes's.
Yes.
And let us restore calm in our.
Components, click on components, just look for where we hit home.
Home is here and a home you're going to see here, branes, which is Mercedez the King.
If I try to put all I have them, I think they can, you know, think.
Here, it's your.
Yes, it's really work, but we need to accomplish what's recorded controlled components, and that's
means once you said stage, you update your which here you must take these gains.
If this value of this value, the value of the brand, which is updated in the US on this value in our
field, in our select button, sorry to say here, we're going to see the value we can.
The value must be equal to props, notes and props, not prints.
OK, we're going to create a new props that's required name brings a DEA controlled component.
We are going to take this who is going to be equal to Brent and here over a hundred years where we have
carried our feature.
We must get a new brain, a new filter.
That's a new process that's going to call it brains.
And we're going to see those states, those.
Brains like this, like.
By creating this brain switches brains, and we are going to cart these props brains in our theater
here, and that means if you let something here in our brain select button, once you select this,
you are using the contents or attributes and you're going to call props that feature they call Hendry.
And the future they call handle is a function which has an event, a like a parameter.
And it will take this value like it will take the dyslexic value and it will bring these selected value
in our home years in the future.
Render function, OK.
It will take this Delu, which is it will take this value and it will update it.
OK, and as you can see here, we have set up this year for Brent.
Brent is equal to events, OK?
Don't target the value and it will update our estate, which is our data, which is in our state, which
is Brent.
It will take Brent is going to be equal to rents, to the selected value.
And once you said state, you update your state in order to accomplish the controlling components notion.
You need to take also the state, which is updated our brains and take this value its value and assign
it still in the value of about sonorities.
Let's buy time.
Okay, so in there if we tried to accurately as big.
Leaders.
That's Mercilus.
It just looked Mercedez.
Yes, Mercilus, your.
Know.
That Officer Reloj speech.
OK, let's on Mercedes's, we have met pavement's register, Toyota if Toyota and click on Islam Reshift
Nissan.
Sure.
And if we click on all, I'll think, OK, and this is the control.
It's a components nation.
So I think that we have finished with the feature parts effectively conversa.
This is the actual effect here.
You see also realistically here it change.
It changes.
And so why we have this year.
So let us come first here and I'm going to explain you something in our homology, because in our Ricard's,
if weeing uncommented, for example, this, we are going to get our leaders.
Let us see first when we feature, for example, in this case, we have four elements for vacance with
Mercedes brains.
And if we try to uncommented this, it will display a state like a car states with the main index.
OK, so you are going to get Iraq because we have only a four indexes.
We have zero one, two, three.
And that's why if you try to accommodate this difference, we have six year to nine and we are going
to get Iraq.
So with zero, it's real Wick's because we have the zero index.
And if we try to make sure you see we have this is from the zero index reason where we have it here
and if we try to say one.
If we see one and let leaders click on Mercedez, if we see one, you can see we are going to get the
one index here.
So we are going to continue the next video.
In the next video, we're going to be talking about how we can sort by price at the lowest is by default.
And if we say to the last, it is by default and if we click on lowest, it will sorts out products
from the lowest priced to the highest priced.
And if you click on highest, it will sorts our products.
Are they cause from the highest price to the lowest price?