ReactJS: Why shouldn't I mutate nested state?

前端 未结 3 1400
北海茫月
北海茫月 2021-01-19 13:28

I\'ve read the ReactJS documentation about setState. Specifically, this line:

NEVER mutate this.state directly, as calling setState() afterwa

3条回答
提交回复
热议问题