title: Reactjs function "is not a function"
body: <p>I am trying to use an additional function on submit as I usually did but it shows it's not a function.</p>
  <pre class="lang-js prettyprint-override"><code>confirmSubmission = () =&gt; { // This doesn't work either: confirmSubmission() {
      //doSomething();
  }
  
  onSubmission(survey, options) {
      this.confirmSubmission(); // here it says Uncaught error: confirmSubmission is not a function
  }
  </code></pre>
  <p>The function I used:</p>
  <pre class="lang-js prettyprint-override"><code>return (&lt;MyCOmponent model={model} onComplete={this.onSubmission}/&gt;);
  </code></pre>
  <p>Other code that I have within <code>onComplete</code> executes fine if <code>confirmSubmission</code> is not there.</p>
  <p>I have a similar code with another function which works perfectly fine in the same component:</p>
  <pre class="lang-js prettyprint-override"><code>componentDidMount() {
      this.loadData(); // This works
  }
  
  loadData() {
      doSomething();
  }
  </code></pre>
  <p>I am confused why it doesn't like the <code>confirmSubmission</code> call. Any ideas?</p>