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:
Submit() {
function1 () {};
function 2 () {};
}
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?