Skip to content

Commit 1e1d383

Browse files
committed
wip
1 parent 1d0a8d9 commit 1e1d383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/useContext.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ function Button() {
6363
// ...
6464
```
6565
66-
`useContext` は <CodeStep step={2}> context の値</CodeStep> を <CodeStep step={1}>渡した context </CodeStep> のために返します。context の値を決定するために、React はコンポーネントツリーを探索し、特定の context について**最も近い上位の context プロバイダ**を見つけます。
66+
`useContext` は <CodeStep step={2}>コンテクストの値</CodeStep> を <CodeStep step={1}>渡したコンテクスト</CodeStep> のために返します。コンテクストの値を決定するために、React はコンポーネントツリーを探索し、特定のコンテクストに対して**最も近い上位のコンテクストプロバイダ**を見つけます。
6767
68-
context を `Button` に渡すために、それを対応する context プロバイダでラップします :
68+
コンテクストを `Button` に渡すために、該当のコンテクストプロバイダでラップします :
6969
7070
```js [[1, 3, "ThemeContext"], [2, 3, "\\"dark\\""], [1, 5, "ThemeContext"]]
7171
function MyPage() {

0 commit comments

Comments
 (0)