Build a component that holds a person object in state. Display the person’s data in the component. 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 }));