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

Fix up getDefaultProps docs

Ben Alpert committed Jul 11, 2014 at 14:26 UTC c64df89ecf9357ae71f566d98947f99a9bdf6f8f
1 file changed +2 -2
docs/docs/ref-03-component-specs.md
+2 -2
@@ -42,9 +42,9 @@ Invoked once before the component is mounted. The return value will be used as t
42 object getDefaultProps()
43 ```
44
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).
45 +Invoked once and cached when the class is created. 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`.
47 +This method is invoked before any instances are created and thus cannot rely on `this.props`. In addition, be aware that any complex objects returned by `getDefaultProps()` will be shared across instances, not copied.
48
49
50 ### propTypes