sunnie@lemmy.ca to Programmer Humor@programming.dev · 1 year agono.. just nolemmy.caimagemessage-square69fedilinkarrow-up1505
arrow-up1488imageno.. just nolemmy.casunnie@lemmy.ca to Programmer Humor@programming.dev · 1 year agomessage-square69fedilink
minus-squarekpw@kbin.sociallinkfedilinkarrow-up22arrow-down4·1 year agoThe most offensive thing here is the amount={5} attribute. What is it? It’s not XML.
minus-squareABC123itsEASY@lemmy.worldlinkfedilinkarrow-up21arrow-down1·1 year agoIt’s a react component and that would be the proper way to give a numerical value in jsx
minus-squareHuschke@lemmy.worldlinkfedilinkarrow-up5·1 year agoJSX has grown beyond react, so without further context it doesn’t have to be react.
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.