showing results for - "onchange react functional programming"
Regina
03 Aug 2020
1function handleChange(event) {
2    let value = event.target.value; //---> we need to verify value //
3    setName(value)
4  }
5  return (
6    <div className="container">
7      <h1> {headingText}</h1>
8      <p> Hello {name}</p> //*//
9      <input
10        onChange={handleChange}
11        type="text"
12        placeholder="What's your name?"
13        value={name}  //*//
14      />
similar questions
queries leading to this page
onchange react functional programming