Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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: