We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d3f1d4 commit 7159a6aCopy full SHA for 7159a6a
content/docs/render-props.md
@@ -130,9 +130,9 @@ class MouseWithCat extends React.Component {
130
<div style={{ height: '100vh' }} onMouseMove={this.handleMouseMove}>
131
132
{/*
133
- 我们可以在这里换掉 <p> 的 <Cat> ......
134
- 但是接着我们需要创建一个单独的 <MouseWithSomethingElse>
135
- 每次我们需要使用它时,<MouseWithCat> 是不是真的可以重复使用.
+ 在这里,我们可以简单地使用 <Cat> 来替换 <p>。但是如果这样
+ 做的话,当我们每次遇到这样的情况时,就需要创建一个单独的
+ <MouseWithSomethingElse>。所以 <MouseWithCat> 并不是真正的可复用组件。
136
*/}
137
<Cat mouse={this.state} />
138
</div>
0 commit comments