Skip to content

Commit 3925f60

Browse files
committed
doc: fix review warning
1 parent b6efcb5 commit 3925f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/render-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class MouseTracker extends React.Component {
212212

213213
更具体地说, **render prop 是一个组件用来知道要渲染什么内容的函数 prop。**
214214

215-
这一技术使得共享代码间变得相当容易。要获得这个行为,只要渲染一个带有 render prop 的 `<Mouse>` 组件就能够告诉它当前鼠标坐标 (x, y) 要渲染什么。
215+
这项技术使用我们所需行为的共享变得相当容易。要获得这个行为,只要渲染一个带有 render prop 的 `<Mouse>` 组件就能够告诉它当前鼠标坐标 (x, y) 要渲染什么。
216216

217217
关于 render prop 的一个有趣的事情是你可以使用带有 render prop 的常规组件来实现大多数[高阶组件](/docs/higher-order-components.html) (HOC)。 例如,如果你更喜欢使用 `withMouse` HOC而不是 `<Mouse>` 组件,你可以使用带有 render prop 的常规 `<Mouse>` 轻松创建一个:
218218

0 commit comments

Comments
 (0)