Warning: Instance created by `useForm` is not connected to

antd记录:Warning: Instance created by useForm is not connected to any Form element. Forget to pass form prop?

Modal内渲染form,在触发submit时报错。

错误Warning: Instance created by `useForm` is not connected to_第1张图片

解决方案:

Form添加属性 form={form}

你可能感兴趣的:(前端react.js)