import React from 'react'; import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, Form, Input, Space } from 'antd'; const onFinish = (values: any) => { console.log('Received values of form:', values); }; const App: React.FC = () => (
{(fields, { add, remove }) => ( <> {fields.map(({ key, name, ...restField }) => ( remove(name)} /> ))} )}
); export default App;