why to use setstate in react instead of object code example
Example: react native setstate object
this.setState({
lang1:{
...this.state.lang1,
name: "myExample"
}
})
this.setState({
lang1:{
...this.state.lang1,
name: "myExample"
}
})