also use usestate then connect useState to input box by using setName() <input placeholder="example Mike" onChange={(event) => {setName(event.target.value);}} />