You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/passing-data-deeply-with-context.md
+5-20Lines changed: 5 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -214,13 +214,13 @@ Context는 부모가 트리 내부 전체에, 심지어 멀리 떨어진 컴포
214
214
215
215
<Diagramname="passing_data_context_close"height={160}width={608}captionPosition="top"alt="Diagram with a tree of three components. The parent contains a bubble representing a value highlighted in orange which projects down to the two children, each highlighted in orange." >
216
216
217
-
Using context in close children
217
+
Context를 가까운 자식 컴포넌트에서 사용하기
218
218
219
219
</Diagram>
220
220
221
221
<Diagramname="passing_data_context_far"height={430}width={608}captionPosition="top"alt="Diagram with a tree of ten nodes, each node with two children or less. The root parent node contains a bubble representing a value highlighted in orange. The value projects down directly to four leaves and one intermediate component in the tree, which are all highlighted in orange. None of the other intermediate components are highlighted.">
222
222
223
-
Using context in distant children
223
+
Context를 먼 자식 컴포넌트에서 사용하기
224
224
225
225
</Diagram>
226
226
@@ -476,9 +476,7 @@ export default function Section({ level, children }) {
476
476
}
477
477
```
478
478
479
-
이것은 React에게 `Section` 내의 어떤 컴포넌트가 `LevelContext`를 요구하면 `level`을 주라고 알려줍니다. 컴포넌트는 그 위에 있는 UI 트리에서 가장 가까운 `<LevelContext.Provider>`의 값을 사용합니다.
480
-
481
-
This tells React: "if any component inside this `<Section>` asks for `LevelContext`, give them this `level`." The component will use the value of the nearest `<LevelContext>` in the UI tree above it.
479
+
이것은 React에게 `<Section>` 내의 어떤 컴포넌트가 `LevelContext`를 요구하면 `level`을 주라고 알려줍니다. 컴포넌트는 그 위에 있는 UI 트리에서 가장 가까운 `<LevelContext>`의 값을 사용합니다.
0 commit comments