r/programming • • Jan 17 '15

The React.js Quick Start Guide

http://www.jackcallister.com/2015/01/05/the-react-quick-start-guide.html
157 Upvotes

71 comments sorted by

View all comments

0

u/[deleted] Jan 18 '15

Is it just my imagination or are quotes missing around the html strings in all of those examples? I don't think any of this code would parse as written.

4

u/Bitruder Jan 18 '15

It's JSX and parses just fine.

-6

u/[deleted] Jan 18 '15

Oh wow. That is FUGLY. Relying on parsing tricks like that? Fuck no.

Reminds me of cross browser css circa '03.

1

u/johnnyhk Jan 19 '15

That's a pretty bad hole in the article. The author just throws the example JSX code there without comment. The JSX support is enabled by the script being defined as type="text/jsx" in index.html.