This hook returns the current form validity state.
import { useFormIsValid } from 'exeform';
useFormIsValid(): boolean
const Submit = () => {
const isValid = useFormIsValid();
return (
<button disabled={!isValid} type="submit">
Submit
</button>
);
};