Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tombert
on May 26, 2023
|
parent
|
context
|
favorite
| on:
That people produce HTML with string templates is ...
Is that really any different than JSX? I'm assuming that JSX doesn't just directly do `"<div>" + user.name + "</div>"`. Presumably it maps it to some kind of data structure and eventually compiles that into something that can be rendered.
bcrosby95
on May 26, 2023
[–]
JSX is compiled into plain old Javascript react code. Or at least it used to, but I don't know if it still does - I don't use react these days:
https://legacy.reactjs.org/docs/introducing-jsx.html
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: