title: How to call two functions onSubmit in React?
body: <p>I am trying to call two functions on the same onSubmit event in React. My approach is two wrap the two functions in a parent function, and call the parent function, as follows: </p>
  
  <pre><code>  Submit() { 
  function1 () {}; 
  function 2 () {}; 
  }
  </code></pre>
  
  <p>Is there any glaring error in the way that I am going about this? I am getting a syntax error so I imagine it is a small error I am overlooking. Does the syntax above make sense? </p>