Skip to content

Files

Latest commit

9a59fe9 · Sep 20, 2023

History

History
30 lines (20 loc) · 446 Bytes

AntdTypescript.md

File metadata and controls

30 lines (20 loc) · 446 Bytes

Antd typescript

Demos

import type { InputRef } from 'antd';
import type { FieldData } from 'rc-field-form/lib/interface';

const Index: React.FC = () => {

  const inputRef = useRef<InputRef>(null);

  const handleFieldsChange = (changedFields: FieldData[], allFields: FieldData[]) => {
    // ......
  }

  return (
    <Form
        onFieldsChange={handleFieldsChange}
        form={form}
      >
    </Form>
  )
}