title: Uncaught TypeError: Cannot read property 'state' of undefined
body: <p>I am trying to change from React.createClass to React.Component, but I am getting below error.</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'state' of undefined 
  </code></pre>
  
  <p>I googled for the error but an not able to figure it out</p>
  
  <pre class="lang-js prettyprint-override"><code>class Accordion extends React.Component {
  </code></pre>