From 9b3c3b63e2053a8248c5ddf307480f6632257d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Fri, 1 Nov 2013 15:29:10 -0700 Subject: [PATCH] [docs] Clarify when `getInitialState` is called. --- 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 0a4a63c8..393faea3 100644 --- a/docs/ref-03-component-specs.md +++ b/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