Now, before we make up our styles, I would like to configure our state, so for that purpose, let's
just import your state so that we can use state in a functional component, as you might remember that
functional component and do not have this state.
So there's a hope present there that is called the U.S. state OK to allow us to use the state property.
So now let's just import used it.
And after this very quick configuring our state inside our functional component, no, let's create
constant and the way the name should be transactions.
As it might be the most suitable name for it, then set a function that is going to send the value of
transactions and let's just name the transactions.
Now inside, they used it to be able to provide a different property of the state, right?
So let's just get your state and inside this way, giving it a default property that is going to be
shown prior to that, we add any value or we remove any value.
So let's give it an idea of when and where you would text and there should be, let's name it.
Books, we spend our money on books at first.
And the total amount was.
Spent on book this weekend is minus 20 dollars.
OK, so we have our state now, the next entry should be again and I.D. So we'll just copy it.
It and at least we should have at least what it is.
So one.
A two, three and a four, oh, that's make it five.
And apart from books, maybe be having maybe flaws.
And let's give it the value of $10, maybe.
And we are not only spending money, we're even getting our money back.
So let's just get a salary and it should be around.
Three hundred dollars, I guess.
And apart from Saturday, we just spend our money on floods.
By some piece of fabric for ourselves and then just put it up 20 and again, then just groceries.
Groceries costing me about.
Ten dollars or 20, maybe.
OK, so here we have our default state.
We have five entries in it.
No even need to change the Eighties.
And it should be five for a three and a two.
So now we just take a look at that app.
We have used it, which contains five entries with our ID, text and amount.
So what are we going to do next is that configure these state values and passing up our transactions
via probes into the balance sheet, into the expense sheet, into transactions and the new transaction.
So we want to continue transactions.
Will you just be sending it to transactions?
Now let's just pass these values to these components, and transactions should be equal to transactions.
So here they're passing transactions.
Then again, maybe maybe doing the same.
Just copy.
And basically, do these three.
OK, so we have successfully passed the value into all the three components.
Now what are you going to do is make our studies.