import React,{useState} from 'react' function MyForm() { const[name,setName]=useState("") const[txtarea,setTextarea]=useState() const handleChange=(event)=> { setTextarea(event.target.value) } const handleSubmit=(event)=> { event.preventDefault() alert(`The name you entered: ${name}`) alert(`The Text area you entered: ${txtarea}`) } return(
setName(e.target.value)}/>