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

It uses tag syntax, which regular JavaScript doesn’t at all. Browsers cannot parse it. These are meaningful differences.


None of that matters to a React developer. If you know JavaScript, you know JSX.


I don't understand how that is relevant to the quote I was replying to: "React is great because it's vanilla Javascript". Vanilla Javascript works in a browser with zero transpiling. That's important.

(also, "if you know JavaScript you know JSX" is objectively untrue! There are plenty of JS developers that don't work with JSX)


We're talking two different things. I'm talking about the developer perspective. You're talking about browser. If a JS developer doesn't work or understand JSX, they don't understand the fundamental concept of JavaScript which is what an expression is. "if you know JavaScript you know JSX" - JSX is just a JavaScript expression. There is nothing more to it.


> We're talking two different things. I'm talking about the developer perspective. You're talking about browser.

I'm not. I'm talking about a programming language. It has a spec.

"if you know JavaScript you know JSX" - JSX is just a JavaScript expression.

This is nonsense. Where is JSX in the JavaScript spec?


You talk nonsense just for the sake of it. I never said JSX is in the spec. If you know JavaScript basics (what an expression is), it takes a minute to understand JSX.


You're talking about something different to me then criticising me for it. The quote I was originally replying to was:

> React is great because it's vanilla Javascript

React is not vanilla Javascript. "it takes a minute to learn JSX" isn't disgreeing with that statement.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: