'Antd create form

Form.create() is not working on antd v4. How to make this code executable at antd v4

const EditableRow = ({ form, index, ...props }) => (
  <EditableContext.Provider value={form}>
    <tr {...props} />
  </EditableContext.Provider>
);
export const EditableFormRow = Form.create()(EditableRow);

I change to this also cannot

export const EditableFormRow = () => {
    const { form, index, ...props } = useForm();
      return (
        <EditableContext.Provider value={form}>
          <tr {...props} />
        </EditableContext.Provider>
      )
    };


Solution 1:[1]

You should look through docs that mention migrating to v4. of ant design form:

https://ant.design/components/form/v3

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mukhriddin Shakhriyorov