Skip to content

Commit c376d9c

Browse files
committed
createContext little modify
1 parent fc244c1 commit c376d9c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/reference/react/createContext.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ const ThemeContext = createContext('light');
3737

3838
#### 반환값 {/*returns*/}
3939

40-
`createContext` returns a context object.
40+
`createContext`는 컨텍스트 객체를 반환합니다.
4141

4242
**컨텍스트 객체 자체는 어떠한 정보도 가지고 있지 않습니다.** 다른 컴포넌트가 읽거나 제공하는 어떤 컨텍스트를 나타냅니다. 일반적으로 상위 컴포넌트에서 컨텍스트 값을 지정하기 위해 [`SomeContext`](#provider)를 사용하고, 아래 컴포넌트에서 읽기 위해 [`useContext(SomeContext)`](/reference/react/useContext)를 호출합니다. 컨텍스트 객체에는 몇 가지 속성이 있습니다.
4343

44-
* `SomeContext` lets you provide the context value to components.
44+
* `SomeContext`는 컴포넌트에게 컨텍스트 값을 제공합니다.
4545
* `SomeContext.Consumer`는 컨텍스트 값을 읽는 대안이며 드물게 사용됩니다.
46-
* `SomeContext.Provider` is a legacy way to provide the context value before React 19.
46+
* `SomeContext.Provider`는 React 19 이전 버전에서 사용되는 오래된 컨텍스트 값 제공 방법입니다.
4747

4848
---
4949

50-
### `SomeContext` Provider {/*provider*/}
50+
### `SomeContext Provider` {/*provider*/}
5151

5252
컴포넌트를 컨텍스트 제공자로 감싸서 이 컨텍스트의 값을 모든 내부 컴포넌트에 지정합니다.
5353

@@ -65,9 +65,9 @@ function App() {
6565

6666
<Note>
6767

68-
Starting in React 19, you can render `<SomeContext>` as a provider.
68+
React 19부터는 `<SomeContext>`를 제공자로 렌더링 할 수 있습니다.
6969

70-
In older versions of React, use `<SomeContext.Provider>`.
70+
오래된 React 버전은 `<SomeContext.Provider>`를 사용합니다.
7171

7272
</Note>
7373

@@ -213,7 +213,7 @@ function App() {
213213

214214
## 문제 해결 {/*troubleshooting*/}
215215

216-
### I can't find a way to change the context value {/*i-cant-find-a-way-to-change-the-context-value*/}
216+
### 컨텍스트 값을 바꾸는 방법을 모르겠어요. {/*i-cant-find-a-way-to-change-the-context-value*/}
217217

218218
이런 코드는 *기본* 컨텍스트 값을 지정합니다.
219219

0 commit comments

Comments
 (0)