Let us be clear and let us make also a consultant of all states that we have, because we have a two
state status and we have two data in our state like we have in our and the state, like.
Yes, also, like and we're going to say this, dot states in order to display our states, so now we
are in instead of the component of that because the components is updated.
OK, we can easily access our components, the updates.
And here we are going to say there is going to be equal to two.
And here we going to say the component is up, that it's there as Big Brother and Reloads Page.
OK, we can see here if it's already here, OK?
And after the components is displayed, OK, once we update, once we use this, it's a function and
we're going to say here we're going to see here, the components is updated.
And here we are in the components update.
We have tried to make this console here for the first console.
Look, we have the Peugeot's, the props, OK, the props.
If we try to make our apologies, we have called it a clock doges here as a tad components of apologies
and we have caller as props, because if you try to remove this and try to back here and reload the
page you want to see, we don't save any more props.
OK, we have it.
Empty props.
But here we have at least we have it one props.
Reason why we we have it here.
OK, we have color by default is is equal to true.
And let us make Clarkdale chest and the this props is a color the previous state.
What is the state.
Because as you can see here, the face value of our state was one and now we are in the second phase
and the step tansy's from one to two.
That means two is the current value of our step, but one was the previous value of our step.
So reason why you can see we have the previous dippie states here.
And if we try to make here, we have to state we have two data in our state.
The first is our and we don't see a problem with our.
And the second one easily does click here.
Ken?
As you can see, yes, as you can see here, we have Ron Howard and Step and this is for the views states,
OK, because we have displayed the previous dates here.
OK, this is the previous date.
Yes, they did us click here.
Step was equal to one.
This is the previous step.
Again, it is a state which is our state and we have our own state.
And after that, after the update, OK, if you try to open, you want to see the current state of our
state is equal to two.
OK, so this is the importance of components that updates and you can view all this and you can play
with this function and make some lines of code.
For example, what's the component is updated.
OK, it is very important.
Very good.
So you can see here we this is like said states, if we want to update.
OK, if you want to update, for example, your.
Your state, but you can't use this method, but the best way is to use another method in another way.
OK, I'm going to show you this week we are going to come here and create.
A parameter like you are going to name this parameter like.
In my case, I'm going to name its preview states, OK, because we want to pass from one, which is
the first phase to the second phase from one to two, because we are updating here and here.
You are going to create a state name Nemitz, like you want.
You're going to name this this parameter like you want.
But what when you add a parameter here, Riecken, this will automatically understands you are you want
to take it pure you state of your components of your of your state.
OK, so here I'm going to name the states like this.
And here instead of saying these dots state dot step, I'm going to say pujas, state, dot state.
That means this parameter is going to be an object, OK, for gerring, my state, my different data
that I have in my state, like if I try to say, for example, you can see Krave views state.
If I say dots, OK, and you can see I have our state which is in and I have also a where is my state
leaders on.
You can see I have also stepped that's mean every state is like it is an object of different states.
I have a lot of different data I have in my state.
OK, you can name ID like you want, if it's for example, to it are here, OK.
You can say, for example, that you're going to say step.
OK, you're going to find your step here, so does not make your brother OK, or you can say also all
state elections and here I'm going to change.
I'm going to say the states step like this, OK, plus one.
And once you create a parameter here, Regius will automatically understand that it is an object.
Will ellos you, for example, to access in different data that you have in your state.
OK, so I have this.
You're right, because I have just added a perimeter here.
So make sure to take your call.
Brass's here and put it.
The brackets like this.
OK, and here you can see here pujas, that is not definite, OK, why previous this is not.
Make sure to put it like this in error function.
Put it like this, OK, use the error function.
And if you try to bake, we are going to have the same thing.
OK, very good.
And here you can see we come from our.
The first step to this against the from the first to the second step.
OK, so let us be clear.
You can see our thing is very good and that once we are now in the components, it's OK because the.
The component is updated, OK, and now we can access to the third phase, which is a mountain phase,
and we're going to try a mounting phase in the tourist taking it to the last Viju.