title: How do I define methods in stateless components?
body: <p>If I simply have:</p>
  
  <pre><code>const App = function() {
      return (
          &lt;div&gt;{this.renderList()}&lt;/div&gt;
      )
  
  }
  </code></pre>
  
  <p>How do I define the <code>renderList</code> method?</p>
  
  <p>I can't do <code>const renderList = function() {}</code> (nor with <code>var</code> or <code>let</code>). I can't do <code>renderList() {}</code>.</p>
  
  <p>What's the right syntax?</p>