4 ms·
Aren't you simply reinforcing the main point GP made? That it's yet another DSL to learn
by culi 4y ago
Aren't you simply reinforcing the main point GP made? That it's yet another DSL to learn
- FlorianRappl 4y agoDepends on how much you read it > JSX is a DSL that looks almost like normal HTML, but differs in small uncanny-valley ways. My point was not that its a common misconception that JSX has something to do with HTML - therefore comparing it to HTML and then being surprised that it isn't, shouldn't come as a surprise. Also it does not differ in small uncanny-valley ways. Just one example on the syntax level: HTML has real self-closing elements (e.g., `<img>`) while JSX requires you to explicitly self-close (e.g., `<img />`). In HTML you also cannot explicitly self-close any element (e.g., `<div />` will just be parsed like `<div>`), while in JSX you can. I don't even want to start about whitespace etc. - those things are actually found / listed in any decent JSX tutorial.