News for hackers. Stuff that matters.
Re:When XML Beats JSON: UI Layouts by Zarel on Wednesday October 30, 2019 @11:07AM (#21398539)
None of the flaws you list apply to TSX, which essentially gives you the best of both worlds. I really wish SwiftUI had used JSX-style syntax, just because of how nice it looks.
Re:When XML Beats JSON: UI Layouts by zdragnar on Wednesday October 30, 2019 @11:25AM (#21398735)
Technically, tsx / jsx is just a macro to convert an xml-like syntax to plain javascript objects... Neither xml nor json.

Inline functions and classes dont exist in either, JSX doesnt have to deal with xml's namespaces, and you dont need to construct an entire document- fragments are defined in functions at as granular a level as you like.

I do agree personally that I prefer tsx over the other alternatives, just pointing out that it is a pretty nice step up over something like flex or xaml.