The following component is a input form and when onSubmitFunction is called it successfully performs all functions as I intend, including re-rendering the DOM after
onSubmitFunction