Skip to content

Commit 7159a6a

Browse files
docs(cn): optimising translation in render-props.md (#708)
Co-authored-by: KnowsCount <[email protected]>
1 parent 3d3f1d4 commit 7159a6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/docs/render-props.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ class MouseWithCat extends React.Component {
130130
<div style={{ height: '100vh' }} onMouseMove={this.handleMouseMove}>
131131

132132
{/*
133-
我们可以在这里换掉 <p> 的 <Cat> ......
134-
但是接着我们需要创建一个单独的 <MouseWithSomethingElse>
135-
每次我们需要使用它时,<MouseWithCat> 是不是真的可以重复使用.
133+
在这里,我们可以简单地使用 <Cat> 来替换 <p>。但是如果这样
134+
做的话,当我们每次遇到这样的情况时,就需要创建一个单独的
135+
<MouseWithSomethingElse>。所以 <MouseWithCat> 并不是真正的可复用组件。
136136
*/}
137137
<Cat mouse={this.state} />
138138
</div>

0 commit comments

Comments
 (0)