News for hackers. Stuff that matters.
Re:Why I Write CSS in JavaScript by inimino on Monday February 18, 2019 @03:56PM (#19194369)
> JSX is a very thin DSL on top of Javascript.

With its own syntax. Which looks like HTML but isn't.

Re:Why I Write CSS in JavaScript by tracker1 on Monday February 18, 2019 @04:33PM (#19194663)
Considering the differences lean towards the DOM interface names for given attributes and properties, I wouldn't exactly call it NOT JS.

It's actually an XML abstraction that closely resembles HTML + JS-DOM, and is then converted into function calls and arguments.

It's also about as close to E4X as an abstraction that I've seen and something I wish was cross browser over a decade ago when it was first introduced by Mozilla and Adobe, but that's a long side-track. In the end, it's very effective and works well imho. Yes there are some more complexity points in some places, but I don't think anything else does it better. Vue imho is comparible, but I don't like it as much and I feel that Angular is far worse in practice.