Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sebazzz
on July 6, 2023
|
parent
|
context
|
favorite
| on:
The case against self-closing tags in HTML
JSX is not HTML, it imitates HTML. It is fine for it to deviate. You don’t use attributes, but properties, like className.
ttfkam
on July 6, 2023
[–]
HTML as rendered in browsers is the target. Aliases are one thing. Not matching up to the target after rendering is quite another.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: