← React Intermediate Questions - Set 9 Q83
React Intermediate Questions - Set 9
1 2
this.setState({ open: true }); // merge this.setState(prev => ({ n: prev.n + 1 })); // when it depends on the previous value