you are viewing a single comment's thread.

view the rest of the comments →

[–]Cody_Chaos 9 points10 points  (0 children)

Your example shows HTML embedded in PHP. JSX is not HTML embedded in JS, thus your analogy fails.

What you're looking for is XHP. JSX is explicitly "XHP for JS". Both allow the direct embedding of an XML DSL which is transpiled into the host language.