3.10 build a first component customized
To start we will create a file in the SRC components
here and there when it is of record and creates
click on it click on File at the top
and there you will mark D capital letters Expenses
with a capital I and then we can start to write we’ll put running expense item.
H2 Item expenses so this is our first component personalized very basic of course it is enough similar to
application component thereafter always the same
We’re gonna export this file so we’re gonna create the default export function.
Now we can bring it to another file.
and we’ll import it into the App.js
how do you make import spendingItem
How does it put you directly here’s this path indicates to javascript that we are looking for a file element
expenditure in a component file and therefore now what’s good is that watching is change
the paragraph with that one really don’t forget to capitalize
it’s really very important and if we go on our browser you see that it is spending Item and it was
where we wrote here
the Item expense
and it puts it on our website.