In this part, we create a brand new portrait to talk about.
We.
So what you redux.
We allow you to store your state in what they call it.
We duck store and use Ethen to call that we deal with.
So first we have to install the we does and we add redux.
So we go to the terminal and use NPM
install.
We talked, we ate, we talked.
So we go to the investment J.
S And the first part is we are going to create a store.
So we have to import
a store from dance and then to create a store.
We have to let store is equal to a store.
And inside here we have two big a.
We do, sir.
But what we do to reduce our use, to transform the essence.
We do so is to try form the state.
Depends on the actions and actions are the instructions.
What are we doing with us?
So we have FEMA passing.
One is this bill and the other, if the Aston's and the we do this.
So we are going to create a Aston's would create a increment.
And then we we turn to type increment and then we also create a big ribbon and B also named as Dickerman.
And we do so, as we said before, is to transform the state.
Depends on the actions.
So there will be a switch case is.
So we created we do with her or conter we deal with it is equal to say equal to zero and we set it to
S.R.O..
If you that initial state and we also passed the action here.
So we you look at the actions and we will see if it is increment, it will return each day plus one
and our money will we turn to stay minus one?
And in default, we would trust.
We turn to Kerwin's day.
So now we can pass this reducer to the store.
So now we already have this ball to display to stay inside the console of the problems.
We have to use the store pops, subscribe.
And then we are going to dispatch to actions.
Oh, we disparage the increment.
And we are going to stop the server and there is something wrong that we forgot to check the type not
checked.
The extra.
You are going to try that action, DOCTYPE.
Now you can see the.
Here is one.
So it already can change this day by using the increment actions.
And sometimes you will see it as pay low here.
For example, we pass the values and then instead of using one we are going to using Eston thought a
low.
So now if we go back to here and we increment by five, you will see at this time where Aleo is five.
So this is how the actions work.
You can post the type and also the pay load.