I've imported the Form from ant design, then I've declared it, and I've added the form in the Form element. but why still error occurs when rendered.
I want everything to run normally without error messages.
I've imported the Form from ant design, then I've declared it, and I've added the form in the Form element. but why still error occurs when rendered.
I want everything to run normally without error messages.
based on the error you provide in your question it seems that you are using useForm hook but you didn't call it , to fix this error make sure you import useForm:
import { useForm } from 'antd';