Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

onSubmit for form in antd

// 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>
  );
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: typescript type specific numbers 
Typescript :: padding entre les elements css 
Typescript :: typescript var global: typeof globalThis 
Typescript :: parse object typescript 
Typescript :: google app scripts loop 
Typescript :: golang check array index exists in slice 
Typescript :: Scripts may close only the windows that were opened by them 
Typescript :: order documents in firestore 
Typescript :: accessing the elements of a char* in c 
Typescript :: fit_transform() takes 2 positional arguments but 3 were given 
Typescript :: react native styled-components responsive font 
Typescript :: cubic beziere curve function 
Typescript :: typescript readonly 
Typescript :: typescript class inheritance 
Typescript :: typescript generic type 
Typescript :: removing directories in linux 
Typescript :: display moment in format dd/mm/yy only last two digits of year 
Typescript :: asciidots helloworld 
Typescript :: bootstrap get elements id 
Typescript :: The velocity of light in vacuum is 
Typescript :: what is use hsts in .net core 
Typescript :: ts loop through days in dates 
Typescript :: does casting have a higher precedence than dots java 
Typescript :: apache poi get all worksheets from file input stream 
Typescript :: typescript get string value of enum 
Typescript :: nestjs: Starter command line 
Typescript :: @ViewChild takes 2 arguments error 
Typescript :: all objects created from a class will occupy equal number? 
Typescript :: google sheets formula pull last columns 
Typescript :: import path cannot end with ts 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =