https://ko.reactjs.org/docs/state-and-lifecycle.html

**State 업데이트는 비동기적일 수도 있습니다.**
React는 성능을 위해 여러 setState() 호출을 단일 업데이트로 한꺼번에 처리할 수 있습니다.
this.props와 this.state가 비동기적으로 업데이트될 수 있기 때문에 다음 state를 계산할 때 
해당 값에 의존해서는 안 됩니다.
// Wrong
this.setState({
  counter: this.state.counter + this.props.increment,
});

// Correct
this.setState((state, props) => ({
  counter: state.counter + props.increment
}));