isDirty
} {isTouched &&isTouched
}{formState.dirtyFields.test && 'dirty'}
{formState.touchedFields.test && 'touched'}
> ); }; const Component = () => { const { control } = useForm{JSON.stringify(getValues())}
{value}
; }; function App() { const methods = useForm({ defaultValues: { content: 'default', }, }); return ({isValid ? 'valid' : 'not'}
{field.disabled ? 'disabled' : ''}
; } function App() { const methods = useForm({ disabled: true, }); return ({name} {error.message}
)} {isDirty &&{name} isDirty
}