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