3.18 a look more attentive on jsx
Now we’ll find ourselves in the app.js
to import react then as usual it does not change not you always write import
this time you give me a capital letter react from and there in the bars you put react on import
react in this page in the app.js page
now let me show you how would flare
this code if we don’t use this syntax
we’re gonna go upstairs and write back like everything a time to import react react with a
M uppercase point element with an uppercase E between parentheses. you put a div
the second argument is an object that configures this element in particular it is an object that defines all the attributes
of this element says it has no attribute for the moment can thus pass here in an empty object
the third argument now concerns the content between the tax on opening appliances and closing.
you can now have a list infinitely arguments that are two elements of content
different between the opening tax what we’re going to do we’re going to once again mark Réact and we’re going to
made copy a little the elements that we had shared in the start we’ll put back in brackets but this time in
parentheses we’ll put the h2 you go understand why is in hall 2 same as with the DIV
we’ll add this to make it a little more readable
Of course we’ll fix it all like this in will put lets get started and below you
repeat the same react create element for the parcel if like that.
and in it we will put expenditure
always in expenditure you put a comma item:
now I invite you to copy import react
and we’re gonna put it all over our component
we have to put it in all our files it’s dead important
of course we’re gonna retort our first code it’s much more convenient to use this code
but at least you know we can use this way of doing
I’ll see you for the next class