detect if errors of react hook form is empty code example Example: how to disable button if errors object isnt empty in react hook form <button disabled={!formState.isValid}/> ``