title: Call method within method in reactjs
body: <p>I want to call a method inside another method like this, but it is never called.</p>
  
  <p>Button:</p>
  
  <pre><code>&lt;span onClick={this.firstMethod()}&gt;Click me&lt;/span&gt;
  </code></pre>
  
  <p>Component:</p>
  
  <pre><code>class App extends Component {
    constructor(props) {
      super(props);
      this.state = {..};
    }
  
    firstMethod = () =&gt; (event) =&gt; {
      console.log("button clicked")
      this.secondMethod();
    }
  
    secondMethod = () =&gt; (event) =&gt; {
      console.log("this is never called!")
    }
  
    render() {..}
  }
  </code></pre>
  
  <p>The first method is called, but not the second one. I tried to add to the constructor</p>
  
  <pre><code>this.secondMethod = this.secondMethod.bind(this);
  </code></pre>
  
  <p>which is recommended in all the other solutions but nothing seems to work for me. How can I call the second method correctly?</p>