Skip to content

Commit

Permalink
docs(cn): Fix an inaccurate translation (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
loveloki authored Dec 5, 2024
2 parents b3df263 + 3e0addf commit a3c96b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/learn/passing-data-deeply-with-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ Context 不局限于静态值。如果你在下一次渲染时传递不同的值
#### 用 context 替代逐层 props {/*replace-prop-drilling-with-context*/}
在这个示例中,切换复选框状态会修改传入每个 `<PlaceImage>``imageSize` 参数。复选框的 state 保存在顶层的 `App` 组件中,但是每个 `<PlaceImage>` 都需要注意它
在这个示例中,切换复选框状态会修改传入每个 `<PlaceImage>``imageSize` 参数。复选框的 state 保存在顶层的 `App` 组件中,但是每个 `<PlaceImage>` 都需要知晓它的值
目前,`App``imageSize` 传递给 `List``List` 再将其传递给每个 `Place``Place` 又将其传递给 `PlaceImage`。移除 `imageSize` 参数,并在 `App` 组件中直接将其传递给 `PlaceImage`
Expand Down

0 comments on commit a3c96b0

Please sign in to comment.