how to disable submit button initially?
canSubmit is true initially even if e.g. mandatory fields are empty, because no field validation happened yet. I tried using
defaultState like this, but it did not work:I can disable my submit button using something like
disabled={!(isTouched && canSubmit)} but is there a "better" way?