this post was submitted on 27 Dec 2023
547 points (96.8% liked)

Programmer Humor

19712 readers
106 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 11 months ago (2 children)

The most offensive thing here is the amount={5} attribute. What is it? It's not XML.

[–] [email protected] 24 points 11 months ago (1 children)

It's a react component and that would be the proper way to give a numerical value in jsx

[–] [email protected] 6 points 11 months ago

JSX has grown beyond react, so without further context it doesn't have to be react.

[–] [email protected] 14 points 11 months ago (1 children)

It's JSX. It's used to embed markup into javascript

[–] [email protected] 5 points 11 months ago

It's to embed Javascript into embedded markup in Javascript