skip to Main Content

Reactjs – onSubmit is not a function

This is my Form component: import React, { useState } from "react" export default function Form({ onSubmit }) { const [formData, setFormData] = useState({ name: "", reason: "", date: "", class: "", message: "", }); const handleInputChange = (event) =>…

VIEW QUESTION
Back To Top
Search