[docs] Clarify when getInitialState is called.

This commit is contained in:
Paul O’Shannessy
2013-11-01 15:29:10 -07:00
parent 0dc011c40c
commit aedf580a33
+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