I want to update value of one object only but updating value of one Object, Updates the value for all objects.
let default = { name: \'\', age: \'\' } th
There is an easy and safe way to achieve that through the following:
this.setState({ values: [ newObject, ...this.state.values], });
this will create an instance of the state and change the value of an existing object with new object.