Now, we have finished with the announcing phase where you cannot recover these parts and this clock,
as you can see, it is not dynamic because if I want to have the current hour, I need to reload every
time.
So the desire is to update this hour every once again, OK, in order to make this our dynamic.
So we are going to use the religious component, the component, the religious components, lovesickness
functions like we have the components, these demands, we have the components and update every component.
The component needs updates and the components will amount.
And we are going to be using components updates in order to make this our dynamic.
That means once these components is displayed, we can access to the components, these mounts.
And what I mean, once we access to the component dismounts, the desire is to call a JavaScript function,
which is set interval in order to set in order to.
And to update our our every once again.
OK, so what I mean, so let us begin our viewers to your calls.
We are going to use the state's interfer functions.
It is a JavaScript function, as you can see here, in which we have two parameters.
As you can see, by default, I have an error function for for here.
And the second is the interval, the interval.
And I'm going to say, for example, in each after one will means 1000 milliseconds or one segments.
The desire is to update this hour.
OK, so let us back in our viewers to your codes, and I'm going to set a consultant to test our sets
interval function.
I'm going to say consult log.
And I'm going to say, for example, like this and this function will display this message, I think
every now and every one seconds, like after every one seconds if I tried to make here in my brother.
So I'm going to reload your speech.
You're going to see after everyone say, against its will display this message.
So the desire is to use the same logic and updates automatically our our OK, in order to see the importance
of the react, this Lafsky call a religious components love function.
And here we are in the component this month.
OK, that's means after the display of our components, we are going to set automatically to update
automatically the our work, our clock and what's required.
So here we are going to remove all this.
OK.
And to flow like this.
And in insight here, Rosemary, going to say, you're going to say we are going to.
These said states, OK, we are going to update every once again, OK, like this and.
We are going to put in order you're going to use the best way that I have a.
State, you're going to.
Like this.
OK, so we're going to see in Howard, like if you try to come up here, you can see how I can.
OK, you're going to say, Howard.
He's going to be called to new dates.
OK, that's means Avery, and after every 1000 milliseconds ora one seconds, OK, you are going to.
Updates like we are going to update the hour.
OK, so acase, you're going to scuse me, do not use a blue states because we hear we're going to say
only new did OK.
We don't have to to put you here.
So it is not important.
So leaders from both parties, which is not important.
OK, we can also remove disparate kids just as important like this.
OK, every one seconds after everyone say you are going to say it's a you are going to update this hour.
So if we try to make sure and if we try to reload this page, OK, you're going to see every after every
one say against our is going to be updated.
OK, and here's we can see.
Let us reload.
You're going to see the created components of the created component is the render function.
The component is updated.
OK, so that means after everyone seconds we access to the set set function.
That means when we access to this function in order to update our data, are we components, we are
going to get the render function and reload.
Also the dome.
OK, in order to view Tansy's OK reason where you can see we can display all this array consolo here.
We can view all this.
OK, ok.
After every one again we components is updated.
Component is updated.
OK because they said integral function is a function which complies ok.
And it is a function which complies and which complies.
Our say the sets interact is a function which contains a loop.
OK, which component it contains contains a loop like a the loop who can see a complies and a continually
ok every time your E loop will comply.
OK, that's mean that we have like the infinity value.
OK, so if we try to make here.
Yes, this is said to enteral has a loop which to comply continually every time you're going to see
are we going to have these updates?
OK, and you can see we have succeeded to make this clock.
Dynamic and if it's right, for example, to click here in order to destroy these components, let us
click here.
We are in the components amounts, but we have erro, OK, Wazira, because we are trying to destroy
we are destroying these objects, um, and we are destroying we are destroying these components.
The clock, the jazz world, the state's integral is not rich states.
OK, so what are we going to do before to destroy these components?
We must first of all, clear is interval OK to clear this interval?
So what are you going to do?
We are going to come in components will amount's OK before that's what we're going to say.
We are going to say we are going to call clear, OK, clear interval.
And we are going to put uh.
This sets InterOil in insides of the clear interval function.
So what's required to here?
We are going to call these dots.
Time is OK, and we are going to.
Say is equal to all dysfunction.
We're going to take dysfunction and regular Asani to Taimur it, OK?
We're going to have the same thing.
I can't if I tried to beg here, just click here and once I click on click here and we have this here.
So what are we going to do?
We are going to take this that Taimur idea and we are going to pass this.
Just here in our clear interval.
Very good.
And that we are going to avoid or we are going to solve this problem.
So let us reload this page.
OK.
Click here, really component's will amount's with the ear, so click again.
They can make.
The component is destroyed.
OK, as you can see, this is the importance of the year intervals.
So I think that we have finished with these parts.
We are going to continue.