title: JSX/JavaScript syntax in Chrome
body: <p>This is really silly but i got a problem with Chrome (works fine in Firefox) with this syntax borrowed from an example in react-dnd component (link: <a href="https://github.com/gaearon/react-dnd/blob/master/examples/_dustbin-simple/Dustbin.js" rel="nofollow">https://github.com/gaearon/react-dnd/blob/master/examples/_dustbin-simple/Dustbin.js</a>).</p>
  
  <pre><code>const itemDropTarget = {
      acceptDrop(component, item) {
          component.setItem(item);
      }
  };
  </code></pre>
  
  <p>It trigger this error:</p>
  
  <p>Uncaught SyntaxError: Unexpected token (</p>
  
  <p>Chrome doesn't like this either:</p>
  
  <pre><code>const DustbinSimple = React.createClass({
      render() {
  </code></pre>
  
  <p>It must be:</p>
  
  <pre><code>const DustbinSimple = React.createClass({
      render: function() {
  </code></pre>
  
  <p>What am i missing? Must be something really basic i don't understand.</p>
  
  <p>Thanks in advance.</p>