JSX transpiles to human writable public API. It's a 1-to-1 conversion. Also, DSL is hard to define making it hard to say why it is or isn't!
-
-
"Compiled to the same js" - sorry - can you clarify?
-
Sorry, I replied to a different thread with https://github.com/facebook/react/issues/3226 …. React has felt free to change the semantics of the output JS.
-
Stuff like this https://github.com/jridgewell/babel-plugin-transform-incremental-dom …, which the JSX community seems to think is fine, is also another JS output.
-
I totally get why people like JSX, but the mysticism around it is pretty silly and makes cross-pollination and understanding more difficult.
-
@BrendanEich@AdamRackis@ryanflorence@Rich_Harris Mysticism is furthered by considering it anything other than superficial syntax. -
Nah, the mysticism is precisely treating it as simple sugar, when in practice much of the work of React is squinting at it differently.
-
Maybe there's some plans or goals I'm not privy to.
Why am I always the last to be invited into the conspiracy?pic.twitter.com/jZu4JLLZpQ
-
This will forever be how I think about, and encourage use of JSX. Anything else including framework compilers is wildly unappealing to me.
- 9 more replies
New conversation -
-
-
Insulting? Are you serious?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Did I claim that JSX has always transformed to the same JS? That would be a false claim. A 1-1 transform needn't be locked for all time.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.