title: How to fix babel react "Uncaught SyntaxError: Unexpected token <"
body: <p>I am having problem with react setup via CDN.</p>
  
  <p>Her is my html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title&lt;/title&gt;
  
      &lt;link rel="stylesheet" type="text/css" href="css/main.css"&gt;
  
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.0/react.js"&gt;&lt;/script&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.0/react-dom.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.7.7/babel.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/app.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="container"&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and here my app.js:</p>
  
  <pre><code>var myItems = {
      items:
          ["Widget","Gear","Sprocket","Spring","Crank","Lever","Hose","Tube",
              "Wheel","Housing","Case"]
  }
  
  var FilteredList = React.createClass({
  
      filterList: function (event) {
          var updatedList = this.props.initialItems.items;
  
          updatedList = updatedList.filter(function (item) {
              return item.toLowerCase().search(event.target.value.toLowerCase()) !== 1;
          });
  
          this.setState({items: updatedList});
      },
  
      getInitialState: function(){
          return {
              items: []
          }
      },
  
      componentWillMount: function(){
          this.setState({items: this.props.initialItems.items})
      },
  
      render: function(){
          return (
              &lt;div className="myList"&gt;
                  &lt;input type="text" placeholder="Search" onChange={this.filterList} /&gt;
  
                  &lt;List items={this.state.items}/&gt;
  
              &lt;/div&gt;
          );
      }
  });
  
  var List = React.createClass({
      render: function(){
          return (
              &lt;ul&gt;
                  {
                      this.props.items.map(function (item) {
                          return &lt;li key={item}&gt;{item}&lt;/li&gt;;
                      })
                  }
              &lt;/ul&gt;
          );
      }
  });
  
  ReactDOM.render(&lt;FilteredList initialItems={myItems} /&gt;,
      document.getElementById('container'));
  </code></pre>
  
  <p>When run it I get the following error:</p>
  
  <p><code>app.js:31 Uncaught SyntaxError: Unexpected token &lt;</code></p>
  
  <p>Any idea how to fix it?</p>