diff --git a/examples/context/consumer-cached-function-as-a-child.js b/examples/context/consumer-cached-function-as-a-child.js index ac442905..b739e80b 100644 --- a/examples/context/consumer-cached-function-as-a-child.js +++ b/examples/context/consumer-cached-function-as-a-child.js @@ -4,9 +4,7 @@ class Example extends React.Component { renderValue = value => { return (
- Context value:{value}. Props value:{ - this.props.counter - } + Context value:{value}. Props value:{this.props.counter}
); }; diff --git a/examples/context/consumer-inline-function-as-a-child.js b/examples/context/consumer-inline-function-as-a-child.js index 1ba7868b..3b75a54d 100644 --- a/examples/context/consumer-inline-function-as-a-child.js +++ b/examples/context/consumer-inline-function-as-a-child.js @@ -6,9 +6,7 @@ class Example extends React.Component { {value => (
- Context value:{value}. Props value:{ - this.props.counter - } + Context value:{value}. Props value:{this.props.counter}
)}