I am trying to change from React.createClass to React.Component, but I am getting below error.
Uncaught TypeError: Cannot read property 'state' of undefined
I googled for the error but an not able to figure it out
class Accordion extends React.Component {