在钩子中验证组件,组件的每个字段都必须有一个作为注册过程的键官网:https://react-hook-form.com/ npm install react-hook-form 在钩子中验证组件,组件的每个字段都必须有一个作为注册过程的键