state update one value from object react code example
Example: react native update state object inside object
this.setState(prevState => ({
...prevState,
jasper: { // object that we want to update
...prevState.jasper, // keep all other key-value pairs
name: 'something' // update the value of specific key
}
}))