React Hook Form return a new formState: Object
which contain the following information
dirty
: when user interactive any fieldstouched
: what are the fields have interactedisSubmitted
: whether the form have been triggered with submitting
example:
const { formState: { dirty, touched, isSubmitted} } = useForm();