Why does calling react setState method not mutate the state immediately?
From React’s documentation: setState() does not immediately mutate this.state but creates a pending state transition. Accessing this.state after calling this method can potentially … Read more