Without any initial argument, the type of email and setEmail will be undefined.
const [email, setEmail]: [undefined, (value: ((prevState: undefined) => undefined) | undefined) => void] = useState();
So the first step is to enforce email to be a string by either using useState("") or even better useState<string>("").
If you need to know more about React, Its recommended to join React JS Course today.