diff --git a/docs/05-reusable-components.md b/docs/05-reusable-components.md index a427fa48..118dafe8 100644 --- a/docs/05-reusable-components.md +++ b/docs/05-reusable-components.md @@ -324,7 +324,7 @@ With `React.createClass()`, you have to provide a separate `getInitialState` met ```javascript var Counter = React.createClass({ getInitialState: function() { - return {count: props.initialCount}; + return {count: this.props.initialCount}; }, // ... });