Browse Source

Update Advanced Performance code examples so they would output values

Noticed the code examples in *Advanced Performance* wouldn't be rendering the example props, this could lead to some minor confusion for new users.
main
Levi Buzolic 10 years ago
parent
commit
8239de2570
  1. 4
      docs/11-advanced-performance.md

4
docs/11-advanced-performance.md

@ -54,7 +54,7 @@ React.createClass({
}, },
render: function() { render: function() {
return <div>this.props.value</div>; return <div>{this.props.value}</div>;
} }
}); });
``` ```
@ -78,7 +78,7 @@ React.createClass({
}, },
render: function() { render: function() {
return <div>this.props.value.foo</div>; return <div>{this.props.value.foo}</div>;
} }
}); });
``` ```

Loading…
Cancel
Save