From 7af0e4d3bc07e427eaeaf1033caaa3cd2afe14e6 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 22 Mar 2014 12:18:12 -0700 Subject: [PATCH] Add client/server mention in componentDid/WillMount documentation --- docs/ref-03-component-specs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref-03-component-specs.md b/docs/ref-03-component-specs.md index 7294670c..127b2ebf 100644 --- a/docs/ref-03-component-specs.md +++ b/docs/ref-03-component-specs.md @@ -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 @@ -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.