Skip to content

Instantly share code, notes, and snippets.

@mu-hun
Last active November 11, 2019 10:51
Show Gist options
  • Select an option

  • Save mu-hun/92767d6545db696608e6d53c7c403288 to your computer and use it in GitHub Desktop.

Select an option

Save mu-hun/92767d6545db696608e6d53c7c403288 to your computer and use it in GitHub Desktop.
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