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.
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.