Skip to content

Commit 025fb19

Browse files
Yuqing ChenBetaMee
andauthored
Update content/docs/context.md
Co-Authored-By: BetaMee <[email protected]>
1 parent eafd25f commit 025fb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Context 主要应用场景在于*很多*不同层级的组件需要访问同样
3838

3939
**如果你只是想避免层层传递一些属性,[组件组合(component composition)](/docs/composition-vs-inheritance.html)有时候是一个比 context 更好的解决方案。**
4040

41-
比如,考虑这样一个 `Page` 组件,它层层传递 `user``avatarSize` 属性,从而深度嵌套的 `Link``Avatar` 组件可以读取到这些属性:
41+
比如,考虑这样一个 `Page` 组件,它层层向下传递 `user``avatarSize` 属性,从而深度嵌套的 `Link``Avatar` 组件可以读取到这些属性:
4242

4343
```js
4444
<Page user={user} avatarSize={avatarSize} />

0 commit comments

Comments
 (0)