The setState Mechanism of react

. When using setState, his pop-up box can be popped up.
clipboard.png

clipboard.png

clipboard.png
2. this.state.
3.setState

clipboard.png
how to break

Mar.10,2021

this.setState is used to set the state value, and this.state is used to get the state value, so only this.setState will cause rendering, but you can also write this:

this.setState({
    addMemberModelShow: !this.state.addMemberModelShow
})
Menu