Trying to understand the workings of setState() in React. My question is this. 

If I have a function where one of the lines is setState(), will code lines AFTER this line still be run before the rerendering? For instance, in the code bellow,

```
foo(value) {
     this.setState({stateValue: value});
     console.log("Stuff after setState");
}

```

In that code, is the console.log guaranteed to run? It runs when I test it, but I'm uncertain if this is just because React hasn't had time to re-render yet. Can I expect code after this.setState() to run?