{ requiredFields.every(field => formValues[field] && !errors[field]) && <SendSpamCheckbox /> }
const formValues = watch();
{ formValues.userName && formValues.password && <SendSpamCheckbox /> }
useEffect(() => {
triggerValidation(Object.keys(prefilledValues))
}, [prefilledValues])
{ formValues.userName && !errors.userName && formValues.password && !errors.password && <SendSpamCheckbox /> }
function MyClass() {};
MyClass.staticMethod = function() {};