小编bha*_*ATh的帖子

在react-hook-form中的“UseFormReturn”类型上不存在属性“errors”

当我使用react-hook-form时,我无法从react-hook-form解构错误对象。

 const { register, handleSubmit, reset, setValue, getValues, errors, formState } = useForm({
        resolver: yupResolver(validationSchema)
    });
Run Code Online (Sandbox Code Playgroud)

reactjs react-hook-form

6
推荐指数
1
解决办法
7423
查看次数

为什么控制台日志是从sentry.io中的instrument.ts文件生成的

在 React 应用程序中集成 Sentry.io 后的行为。

  1. 控制台日志是从 instremnts.ts 文件生成的。
  2. 我也尝试过从索引页打印它。

sentry reactjs

2
推荐指数
1
解决办法
1154
查看次数

标签 统计

reactjs ×2

react-hook-form ×1

sentry ×1