The submit function is usefull to submit the form. It’s a higher order function that receives an action and a config object and return a Submit. The action is a function that receives the form data and returns a promise. The config object is an object that contains the options to submit the form.