小编Art*_*ixZ的帖子

react-hook-form:如何在没有 `type="submit"` 的情况下提交工作

我在 react-hook-form doc 中检查这个例子:https : //codesandbox.io/s/react-hook-form-v6-controller-qsd8r? file =/ src/ index.js

奇怪的是按钮没有type="submit"。但是点击后仍然触发提交事件。

它如何知道哪个按钮是提交按钮?

reactjs react-hook-form

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

标签 统计

react-hook-form ×1

reactjs ×1