Last active
November 11, 2019 10:51
-
-
Save mu-hun/92767d6545db696608e6d53c7c403288 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { FormEvent } from 'react' | |
| const App: React.FC = () => { | |
| const [flag, setFlag] = useState<boolean>() | |
| const onSubmit = async (event: FormEvent) => { | |
| event.preventDefault() | |
| // @ts-ignore | |
| const { value } = event.target.mailid // mailid is 'any' type | |
| setFlag(await submitID(value)) | |
| } | |
| return ( | |
| // ... | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment