Let's say that I have these two calls:
this.setState((prevState, props) => ({
counter: prevState.counter + props.increment
}));
this.setState((prevState, props) => ({
counter: prevState.counter + props.increment + 1
}));
Because setState is asynchronous, how is it guaranteed that the first call to it will execute first?