Browse Source

[docs] Clarify when `getInitialState` is called.

main
Paul O’Shannessy 11 years ago
parent
commit
9b3c3b63e2
  1. 2
      docs/ref-03-component-specs.md

2
docs/ref-03-component-specs.md

@ -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

Loading…
Cancel
Save