const fetchData = async () => { const handleChange = (e) => {const resetForm = () => setValues(in…...