how to map and set the input results in react code example
Example: Build a component that holds a person object in state. Display the person’s data in the component.
//The Cleaner Way
this.setState(({ value }) => ({ value: value + 1 }));
//The Cleaner Way
this.setState(({ value }) => ({ value: value + 1 }));