@samitouri / QOS-React-2 / commits / a02b6b3d7f

Clarify when getDefaultProps is called

Fixes #1778.

Ben Alpert committed Jul 2, 2014 at 14:06 UTC a02b6b3d7f184dbed3662b5b7b8415a11b1b7306
1 file changed +1 -1
docs/docs/ref-03-component-specs.md
+1 -1
@@ -42,7 +42,7 @@ Invoked once before the component is mounted. The return value will be used as t
42 object getDefaultProps()
43 ```
44
45 -Invoked once when the component is mounted. Values in the mapping will be set on `this.props` if that prop is not specified by the parent component (i.e. using an `in` check).
45 +Invoked once before the component is mounted. Values in the mapping will be set on `this.props` if that prop is not specified by the parent component (i.e. using an `in` check).
46
47 This method is invoked before `getInitialState` and therefore cannot rely on `this.state` or use `this.setState`.
48