Skip to content

Commit

Permalink
docs(cn): optimize semantics in content/docs/render-props.md (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
dendoink committed May 20, 2020
1 parent a1df694 commit 17b8c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/render-props.md
Expand Up @@ -20,7 +20,7 @@ permalink: docs/render-props.html

## 使用 Render Props 来解决横切关注点(Cross-Cutting Concerns) {#use-render-props-for-cross-cutting-concerns}

组件是 React 代码复用的主要单元,但如何分享一个组件封装到其他需要相同 state 组件的状态或行为并不总是很容易
组件是 React 代码复用的主要单元,但如何将一个组件封装的状态或行为共享给其他需要相同状态的组件并不总是显而易见

例如,以下组件跟踪 Web 应用程序中的鼠标位置:

Expand Down

0 comments on commit 17b8c24

Please sign in to comment.