该组件没有错误,但是在我实际调用输入组件的索引文件中,它有错误,因为它无法使用register = {register}。
缺什么?或者出了什么问题?
https://codesandbox.io/s/react-hook-form-typescript-xnb1u
forms typescript reactjs react-hooks react-hook-form
forms ×1
react-hook-form ×1
react-hooks ×1
reactjs ×1
typescript ×1