I'm encountering an issue with my input handleChange function. Specifically, I am receiving the following error message: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.ts(7017) when attempting to update the state using this.setState. Here is the snippet of code that is causing the problem:
const [first_name, setFname] = useState<string>();
const [last_name, setLname] = useState<string>();
const [email, setEmail] = useState<string>();
const [avatar, setAvatar] = useState();
const handleChange = (e:any) => {
const { name, value } = e.target;
this.setState({ [name]: value });
}