score:0

Accepted answer

i assume the problem is when you fill one input and try to change another, the first one is being cleared out, right ?

it's due to the fact, that you create a new info object in your state. if you change your updateinfo function to:

updateinfo = e => {
   this.setstate({ info: { ...this.state.info, [e.target.name]: e.target.value } });
};

Related Query

More Query from same tag