What can be said about the React v17 code snippet given below?
this.setState({ counter: this.state.counter + this.props.increment, });
Options
- The counter is updated successfully
- It may fail to update the counter
- this.state and this.props update synchronously
- Both Choice 1 and 3
- Both Choice 2 and 3