Skip to content

Commit

Permalink
Merge pull request facebook#1288 from vjeux/server_docs
Browse files Browse the repository at this point in the history
Add client/server mention in componentDid/WillMount documentation
  • Loading branch information
vjeux committed Mar 29, 2014
2 parents 98ef7ab + e55b9aa commit 70a8c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/ref-03-component-specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Various methods are executed at specific points in a component's lifecycle.
componentWillMount()
```

Invoked once, immediately before the initial rendering occurs. If you call `setState` within this method, `render()` will see the updated state and will be executed only once despite the state change.
Invoked once, both on the client and server, immediately before the initial rendering occurs. If you call `setState` within this method, `render()` will see the updated state and will be executed only once despite the state change.


### Mounting: componentDidMount
Expand All @@ -121,7 +121,7 @@ Invoked once, immediately before the initial rendering occurs. If you call `setS
componentDidMount()
```

Invoked immediately after rendering occurs. At this point in the lifecycle, the component has a DOM representation which you can access via `this.getDOMNode()`.
Invoked immediately after rendering occurs, only on the client (not on the server). At this point in the lifecycle, the component has a DOM representation which you can access via `this.getDOMNode()`.

If you want to integrate with other JavaScript frameworks, set timers using `setTimeout` or `setInterval`, or send AJAX requests, perform those operations in this method.

Expand Down

0 comments on commit 70a8c55

Please sign in to comment.