Skip to content

Commit 21b018f

Browse files
QC-LBetaMee
and
BetaMee
authored
Update content/docs/context.md
Co-Authored-By: BetaMee <[email protected]>
1 parent 69d86ab commit 21b018f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Context
44
permalink: docs/context.html
55
---
66

7-
Context 提供了一个无需为每层手动添加 props 属性就能在组件树间进行数据传递的方法
7+
Context 提供了一个无需为每层组件手动添加 props,就能在组件树间进行数据传递的方法
88

99
在一个典型的 React 应用中,数据是通过 props 属性自上而下(由父及子)进行传递的,但这种做法对于某些类型的属性而言是极其繁琐的(例如:地区偏好,UI 主题),这些属性是应用程序中许多组件都需要的。Context 提供了一种在组件之间共享此类值的方式,而不必显式地通过组件树的逐层传递 props。
1010

0 commit comments

Comments
 (0)