onChange react functional programming
function handleChange(event) {
let value = event.target.value; //---> we need to verify value //
setName(value)
}
return (
<div className="container">
<h1> {headingText}</h1>
<p> Hello {name}</p> //*//
<input
onChange={handleChange}
type="text"
placeholder="What's your name?"
value={name} //*//
/>