2 ms·
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 exi
by zdragnar 7y ago
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.