import React from 'react'; import { Form, Input } from 'antd'; let acc = 0; const App: React.FC = () => { const [form] = Form.useForm(); return (
{ () => acc++ // return
{JSON.stringify(form.getFieldsValue(), null, 2)}
; }
); }; export default App;