Re:Things every React.js beginner should know
by pkrumins on Monday January 25, 2016 @09:50AM
(#10967431)
I hadn't heard about JSX before so I went to your link to check it out. This is just one of the most off-putting introductory statements I've ever read:
Don't we all hate XML? How can you possibly even go on reading about this technology further if it's introduced like that.
[ Parent
| on HN ]
Re:Things every React.js beginner should know
by clay_to_n on Monday January 25, 2016 @10:04AM
(#10967507)
XML is still used as a the standard for building layouts - on the web and on Android, and probably many other places. It can be much more readable than code for nesting components.
I believe people hating XML has more to do with using XML as a data transfer format, right? I'm happy using XML for Android layouts but can't imagine using it as a replacement for JSON - which I think is where most of the hate comes from.
Re:Things every React.js beginner should know
by pkrumins on Monday January 25, 2016 @10:08AM
(#10967533)
Good point - Now that you said that, I don't mind using XML for defining UIs but I absolutely hate to use for data transfer.
Re:Things every React.js beginner should know
by untog on Monday January 25, 2016 @10:08AM
(#10967537)
XML is fine. XHTML is XML, after all. The issues with XML are the kind of XML that is often created with it, with namespace nightmares, endless embedded tags, etc. etc.
But if you're using XML to basically make a variant of HTML, it's great.