mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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:
1 parent
cfa922a3d7
commit
b793785882
1 file changed
+2
-2
@@ -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