[docs] Clarify when getInitialState is called.

This commit is contained in:
Paul O’Shannessy
2013-11-04 17:21:56 -08:00
parent 1bb2651660
commit b5804fa565
+1 -1
View File
@@ -31,7 +31,7 @@ The `render()` function should be *pure*, meaning that it does not modify compon
object getInitialState()
```
Invoked once when the component is mounted. The return value will be used as the initial value of `this.state`.
Invoked once before the component is mounted. The return value will be used as the initial value of `this.state`.
### getDefaultProps