News for hackers. Stuff that matters.
Re:Things every React.js beginner should know by DrJokepu on Monday January 25, 2016 @08:25AM (#10967007)
You don't have to, you can work with React straight from vanilla JavaScript though. I don't know anyone who does it though (except in tests), because it's nearly not as pleasant to work with as JSX.

It is possible to separate JSX elements from the rest of your code if you use ES6 React components or functional components (that is, you don't use React.createClass), because in those cases there is no need to compile the components themselves, so in theory you could separate the "HTML" bits into separate, dedicated files. It's not really a problem I've faced so far, but might end up doing in the future.

Re:Things every React.js beginner should know by coldtea on Monday January 25, 2016 @09:01AM (#10967170)
>You don't have to, you can work with React straight from vanilla JavaScript though

JSX is just sugar for vanilla JavaScript. It's not HTML per se, as it's not parsed as such, but only as a means to create the virtual DOM.

Re:Things every React.js beginner should know by DrJokepu on Monday January 25, 2016 @09:16AM (#10967252)
Yes, this is true and it does not contradict with what I've written.