Syntax error with Electron and React: unexpected token
<p>I am developing an application with Electron and want to start using React. 
Because of this, I have installed the react and react-dom packages with:</p>

<pre><code>npm install --save react react-dom
</code></pre>

<p>My javascript file is included with:</p>

<pre><code>&lt;script src="js/character-rolling.js"&gt;&lt;/script&gt;
</code></pre>

<p>I have added this to the first part of the javascript file:</p>

<pre><code>var React = require("react");
var ReactDOM = require("react-dom");

var Greeting = React.createClass({
  render: function() {
    return &lt;h1&gt;Hello, {this.props.name}&lt;/h1&gt;;
}
});
</code></pre>

<p>However, when I run the code, chromium developer tools shows the error:</p>

<pre><code>character-rolling.js:6 Uncaught SyntaxError: Unexpected token &lt;
</code></pre>

<p>At first sight one would say that the browser cannot interpret the syntax but isn't this supposed to be pure ES5 syntax? I would like to keep my application simple and not start using a tool like Babel. I would think that the browser should interpret this without problems. The electron version:</p>

<pre><code>[marco@marco-archLinux deeMemory]$ npm run electron --version
4.0.3
</code></pre>