News for hackers. Stuff that matters.
Re:Flipboard releases React Canvas by iLoch on Tuesday February 10, 2015 @10:45PM (#9031464)
For me, I find it much easier to get an understanding of the structure of the components by looking at hierarchical markup vs. plain old JS. Everyone has a different idea of how they want to lay out their JS, but most people know/agree on what XML should look like.
Re:Flipboard releases React Canvas by aaronyo on Wednesday February 11, 2015 @12:09AM (#9031642)
Having a preference for reading HTML seems fair, though I prefer closing parens to closing tags for short bits, and the JS formatting problem is one you've already got in the rest of your code base. Also, you'll be formatting HTML + JS bits and not just static HTML like in the example. JSX seems like a good deal of machinery to support this preference.