3.16 pass data via des props
So for this part I already have everything
and I’m gonna show you all just that you put
break and you copy then already we will start by a const date expenditure date expenditure title and expenses
amount this is to display all values here in the function depends item put props you go see why
then I’ll explain to you
he will now see a small change in app.js as you can see I added things
already we will start by adding that we spend this will be for expenses and to say what we will
spend.
Toilet paper.
The new TV.
Car and PC insurance so I leave you Copy it all back with ID the title the amount.
And you do that every time and you mark the prizes and mark you all and mark you the date.
Then normally here there must be that expenditure item
what you’re going to do you’re going to spend item with the title the title the amount
and the date as always and you mark 00 is for the beginning so for the second
two is for the third and third fourth here after having done this is very simple to turn you back into expenditure
item
and what you’re gonna do is that in here normally I must have marked expenses amount
normally it must have marked something else
and then add you by props.titles
It’s because of this props here
We’ll be able to post in.
our Web Page everything we have marked in the app.js Car insurance PC new TV and there you can
see for there is new TV toilet paper car and PC insurance and then we’ll add it here.
props
amount
and here props
date
And now if you look at the fees that have changed and the dates that have also changed.
See you at the next class.