From b61aace6249becf483a4b20e8e9b507f3c85cc4b Mon Sep 17 00:00:00 2001 From: Mark Hintz Date: Tue, 9 Sep 2014 11:50:13 +0200 Subject: [PATCH] Update ref-03-component-specs.md Edit the description of componentDidMount() to make clear that the function is called only once during the lifecycle of the component, after only the initial render() call. The description is now similar to that for componentWillMount(). The existing wording does not make it clear that the function is called only after the initial render. (Granted, it is possible to infer this from descriptions of the component lifecycle found elsewhere in the documentation, but I think explicit is better than implicit in this case). --- docs/ref-03-component-specs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref-03-component-specs.md b/docs/ref-03-component-specs.md index a21fb68a..20efc831 100644 --- a/docs/ref-03-component-specs.md +++ b/docs/ref-03-component-specs.md @@ -118,7 +118,7 @@ Invoked once, both on the client and server, immediately before the initial rend componentDidMount() ``` -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()`. +Invoked once, only on the client (not on the server), immediately after the initial rendering occurs. 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.