// no more onSubmit, use onFinish
import "./styles.css";
import { Form, Button } from "antd";
export default function App() {
const hello = () => {
console.log("enter");
};
return (
<div className="App">
<Form onFinish={hello}>
<Form.Item>
<Button type="primary" htmlType="submit">
Apply
</Button>
</Form.Item>
</Form>
</div>
);
}