sunnie@lemmy.ca to Programmer Humor@programming.dev · 1 年前no.. just nolemmy.caimagemessage-square93fedilinkarrow-up1559arrow-down119
arrow-up1540arrow-down1imageno.. just nolemmy.casunnie@lemmy.ca to Programmer Humor@programming.dev · 1 年前message-square93fedilink
minus-squarekpw@kbin.sociallinkfedilinkarrow-up25arrow-down5·1 年前The most offensive thing here is the amount={5} attribute. What is it? It’s not XML.
minus-squareABC123itsEASY@lemmy.worldlinkfedilinkarrow-up24arrow-down1·1 年前It’s a react component and that would be the proper way to give a numerical value in jsx
minus-squareHuschke@lemmy.worldlinkfedilinkarrow-up6·1 年前JSX has grown beyond react, so without further context it doesn’t have to be react.
minus-squareMostlyHarmlesslinkfedilinkarrow-up15·1 年前It’s JSX. It’s used to embed markup into javascript
minus-squaresndrtj@feddit.nllinkfedilinkarrow-up7arrow-down2·1 年前It’s to embed Javascript into embedded markup in Javascript
The most offensive thing here is the
amount={5}
attribute. What is it? It’s not XML.It’s a react component and that would be the proper way to give a numerical value in jsx
JSX has grown beyond react, so without further context it doesn’t have to be react.
It’s JSX. It’s used to embed markup into javascript
It’s to embed Javascript into embedded markup in Javascript