I don't think it's necessary to have a default value for these. Just do a check in the event callbacks to see if onSubmit is a function and if so call it.