handleClick=()=>{
this.setState(()=>{
return {
count: this.state.count + 1
}
})
this.setState(()=>{
return {
count: this.state.count + 1
}
})
this.setState(()=>{
return {
count: this.state.count + 1
}
})
}
只有用老师的那种写法才能合并吗?