title: Problem in convert function in react as a class component in material ui
body: <p>I am trying to convert  the function FAQSection to 
  class FAQSection </p>
  
  <p>This is for a webapp</p>
  
  <pre><code>const handleChange = panel =&gt; (event, isExpanded) =&gt; {
      setExpanded(isExpanded ? panel : false);
    };
  </code></pre>
  
  <p>to</p>
  
  <pre><code>constructor(props){
            super(props);
            this.state = {
              expanded: 'panel0',
              setExpanded: false
            }
            this.handleChange = this.handleChange.bind(this);
      }
  handleChange(panel){ 
        this.setState({
        expanded: panel,
        setExpanded: false
      });
     };
  </code></pre>
  
  <p>I want to make ExpansionPanel working with the second handlechange instead of 
  the first one from here(<a href="https://material-ui.com/components/expansion-panels/" rel="nofollow noreferrer">https://material-ui.com/components/expansion-panels/</a>)</p>