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(({ key, name, ...restField }) => ( remove(name)} /> ))} )}
); }; export default App;