diff --git a/docs/ref-03-component-specs.md b/docs/ref-03-component-specs.md index 0fbfeb64e..debd34519 100644 --- a/docs/ref-03-component-specs.md +++ b/docs/ref-03-component-specs.md @@ -164,7 +164,7 @@ transition to the new props and state will not require a component update. ```javascript shouldComponentUpdate: function(nextProps, nextState) { - return !equal(nextProps, this.props) || !equal(nextState, this.state); + return nextProps.id !== this.props.id; } ```