sunnie@lemmy.ca to Programmer Humor@programming.dev · 11 months agono.. just nolemmy.caimagemessage-square91fedilinkarrow-up1552arrow-down118
arrow-up1534arrow-down1imageno.. just nolemmy.casunnie@lemmy.ca to Programmer Humor@programming.dev · 11 months agomessage-square91fedilink
minus-squarekpw@kbin.sociallinkfedilinkarrow-up25arrow-down5·11 months agoThe most offensive thing here is the amount={5} attribute. What is it? It’s not XML.
minus-squareABC123itsEASY@lemmy.worldlinkfedilinkarrow-up25arrow-down1·11 months agoIt’s a react component and that would be the proper way to give a numerical value in jsx
minus-squareHuschke@lemmy.worldlinkfedilinkarrow-up6·11 months agoJSX has grown beyond react, so without further context it doesn’t have to be react.
minus-squareDaniel F.linkfedilinkEnglisharrow-up1·11 months agoYeah! Like in this example where it is being forced against its will to handle SQL.
minus-squareMostlyHarmless@sh.itjust.workslinkfedilinkarrow-up15·11 months agoIt’s JSX. It’s used to embed markup into javascript
minus-squaresndrtj@feddit.nllinkfedilinkarrow-up7arrow-down2·11 months agoIt’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.
Yeah! Like in this example where it is being forced against its will to handle SQL.
It’s JSX. It’s used to embed markup into javascript
It’s to embed Javascript into embedded markup in Javascript