update an object key value in state react code example
Example: update an object key value in state react
this.setState({
jasper: {
...this.state.jasper,
name: 'something'
}
})
this.setState({
jasper: {
...this.state.jasper,
name: 'something'
}
})