mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.
(cherry picked from commit 009f766d6e)
This commit is contained in:
@@ -54,7 +54,7 @@ React.createClass({
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return <div>this.props.value</div>;
|
||||
return <div>{this.props.value}</div>;
|
||||
}
|
||||
});
|
||||
```
|
||||
@@ -78,7 +78,7 @@ React.createClass({
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return <div>this.props.value.foo</div>;
|
||||
return <div>{this.props.value.foo}</div>;
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user