mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[docs] Clarify when getInitialState is called.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user