title: react-laravel Unexpected token
body: <p>I am trying to get react-laravel working. I have installed everything correctly (v8js etc) but I keep getting:</p>
  
  <pre><code>V8Js::executeString():18903: SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>The problem seems to be with my component.js file:</p>
  
  <pre><code>var Application = React.createClass({
      render: function() {
          return (
              &lt;div className="Networks"&gt;
                  &lt;ul&gt;
                      &lt;li&gt;Test&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
          );
      }
  });
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <hr>
  
  <p>Also, is it possible to use ES6?</p>
  
  <hr>
  
  <p>My view:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
      &lt;title&gt;JSPM Experiment&lt;/title&gt;
      &lt;script src="{{ asset('vendor/react-laravel/react.js') }}"&gt;&lt;/script&gt;
      &lt;script src="{{ asset('js/components.js') }}"&gt;&lt;/script&gt;
      &lt;script src="{{ asset('vendor/react-laravel/react_ujs.js') }}"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div id='react-root'&gt;
  &lt;/div&gt;
  @react_component('Application',[ 'title' =&gt; 'Hello, World' ], [ 'prerender' =&gt; true ])
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>