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
By default, `<ViewTransition>` includes the default cross-fade from the browser.
2487
+
기본적으로 `<ViewTransition>`은 브라우저의 기본 크로스페이드를 포함합니다.
2488
2488
2489
-
To customize animations, you can provide props to the `<ViewTransition>` component to specify which animations to use, based on [how the `<ViewTransition>`activates](/reference/react/ViewTransition#props).
2489
+
애니메이션을 커스터마이징하려면, [어떻게 `<ViewTransition>`이 활성화되는지](/reference/react/ViewTransition#props)에 따라, 어떤 애니메이션을 사용할지 지정하는 Props를 `<ViewTransition>`컴포넌트에 제공할 수 있습니다.
2490
2490
2491
-
For example, we can slow down the `default`cross fade animation:
2491
+
예를 들어, `default`크로스페이드 애니메이션을 느리게 만들 수 있습니다.
2492
2492
2493
2493
```js
2494
2494
<ViewTransition default="slow-fade">
2495
2495
<Home />
2496
2496
</ViewTransition>
2497
2497
```
2498
2498
2499
-
And define `slow-fade` in CSS using [view transition classes](/reference/react/ViewTransition#view-transition-classes):
2499
+
그리고 [View Transition 클래스](/reference/react/ViewTransition#view-transition-classes)를 사용하여 CSS에서 `slow-fade`를 정의합니다.
2500
2500
2501
2501
```css
2502
2502
::view-transition-old(.slow-fade) {
@@ -2508,7 +2508,7 @@ And define `slow-fade` in CSS using [view transition classes](/reference/react/V
2508
2508
}
2509
2509
```
2510
2510
2511
-
Now, the cross fade is slower:
2511
+
이제 크로스페이드가 더 느려집니다.
2512
2512
2513
2513
<Sandpack>
2514
2514
@@ -3687,21 +3687,21 @@ root.render(
3687
3687
3688
3688
</Sandpack>
3689
3689
3690
-
See [Styling View Transitions](/reference/react/ViewTransition#styling-view-transitions) for a full guide on styling `<ViewTransition>`.
3690
+
`<ViewTransition>` 스타일링에 대한 전체 가이드는 [View Transition 스타일링](/reference/react/ViewTransition#styling-view-transitions)을 참조하세요.
3691
3691
3692
3692
### Shared Element Transitions {/*shared-element-transitions*/}
3693
3693
3694
-
When two pages include the same element, often you want to animate it from one page to the next.
3694
+
두 페이지에 같은 요소가 있을 때, 종종 한 페이지에서 다음 페이지로 이어지도록 애니메이션을 주고 싶을 때가 있습니다.
3695
3695
3696
-
To do this you can add a unique `name`to the `<ViewTransition>`:
3696
+
이를 위해 `<ViewTransition>`에 고유한 `name`속성을 추가할 수 있습니다.
3697
3697
3698
3698
```js
3699
3699
<ViewTransition name={`video-${video.id}`}>
3700
3700
<Thumbnail video={video} />
3701
3701
</ViewTransition>
3702
3702
```
3703
3703
3704
-
Now the video thumbnail animates between the two pages:
3704
+
이제 비디오 썸네일이 두 페이지 사이에서 애니메이션으로 전환됩니다.
3705
3705
3706
3706
<Sandpack>
3707
3707
@@ -4896,9 +4896,9 @@ root.render(
4896
4896
4897
4897
</Sandpack>
4898
4898
4899
-
By default, React automatically generates a unique `name` for each element activated for a transition (see [How does `<ViewTransition>` work](/reference/react/ViewTransition#how-does-viewtransition-work)). When React sees a transition where a `<ViewTransition>` with a`name` is removed and a new `<ViewTransition>` with the same `name` is added, it will activate a shared element transition.
4899
+
기본적으로 React는 Transition에 활성화된 각 요소에 대해 고유한 `name`을 자동으로 생성합니다. ([`<ViewTransition>`이 어떻게 동작하는지 참고하세요.](/reference/react/ViewTransition#how-does-viewtransition-work)) React가 어떤 Transition에서 특정 `name`을 가진 `<ViewTransition>`이 제거되고, 동일한`name`을 가진 새로운 `<ViewTransition>`이 추가된 것을 감지하면 공유 요소 전환<sup>Shared Element Transition</sup>을 활성화합니다.
4900
4900
4901
-
For more info, see the docs for [Animating a Shared Element](/reference/react/ViewTransition#animating-a-shared-element).
4901
+
자세한 내용은 [Animating a Shared Element](/reference/react/ViewTransition#animating-a-shared-element) 문서를 참고하세요.
4902
4902
4903
4903
### Animating based on cause {/*animating-based-on-cause*/}
Copy file name to clipboardExpand all lines: src/content/reference/react-dom/components/common.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,32 +255,32 @@ title: "공통 컴포넌트 (예: <div>)"
255
255
}}>
256
256
```
257
257
258
-
[See an example of using the `ref` callback.](/learn/manipulating-the-dom-with-refs#how-to-manage-a-list-of-refs-using-a-ref-callback)
258
+
[`ref` 콜백을 사용하는 예시를 확인해 보세요.](/learn/manipulating-the-dom-with-refs#how-to-manage-a-list-of-refs-using-a-ref-callback)
259
259
260
-
When the `<div>` DOM node is added to the screen, React will call your `ref`callback with the DOM `node` as the argument. When that `<div>` DOM node is removed, React will call your the cleanup function returned from the callback.
260
+
화면에 `<div>` DOM 노드가 추가되면, React는 `ref`콜백을 호출하고 그 인자로 DOM `node`를 전달합니다. 해당 `<div>` DOM 노드가 제거되면, React는 콜백에서 반환한 Cleanup 함수를 호출합니다.
261
261
262
-
React will also call your `ref`callback whenever you pass a *different*`ref`callback. In the above example, `(node) => { ... }` is a different function on every render. When your component re-renders, the *previous* function will be called with `null` as the argument, and the *next* function will be called with the DOM node.
262
+
React는 *다른*`ref`콜백을 전달할 때마다 `ref`콜백도 호출합니다. 위 예시에서 `(node) => { ... }`는 렌더링마다 서로 다른 함수입니다. 컴포넌트가 다시 렌더링 될 때, *이전* 함수는 인자로 `null`을 받아 호출되고, *다음* 함수는 DOM 노드를 인자로 받아 호출됩니다.
263
263
264
-
#### Parameters {/*ref-callback-parameters*/}
264
+
#### 매개변수 {/*ref-callback-parameters*/}
265
265
266
-
*`node`: A DOM node. React will pass you the DOM node when the ref gets attached. Unless you pass the same function reference for the `ref`callback on every render, the callback will get temporarily cleanup and re-create during every re-render of the component.
266
+
*`node`: DOM 노드. Ref가 DOM 노드에 연결될 때 React가 해당 DOM 노드를 전달합니다. 매 렌더링에서 `ref`콜백에 동일한 함수 참조를 넘기지 않으면, 컴포넌트가 리렌더링될 때마다 콜백이 일시적으로 Cleanup 됐다가 다시 생성됩니다.
267
267
268
268
<Note>
269
269
270
-
#### React 19 added cleanup functions for `ref` callbacks. {/*react-19-added-cleanup-functions-for-ref-callbacks*/}
270
+
#### React 19는 `ref` 콜백을 위한 Cleanup 함수를 추가했습니다. {/*react-19-added-cleanup-functions-for-ref-callbacks*/}
271
271
272
-
To support backwards compatibility, if a cleanup function is not returned from the `ref` callback, `node` will be called with `null` when the `ref` is detached. This behavior will be removed in a future version.
272
+
하위 호환성을 위해, `ref` 콜백이 Cleanup 함수를 반환하지 않으면, `ref`가 분리될 때 `node`가 `null`로 호출됩니다. 이 동작은 향후 버전에서 제거될 예정입니다.
273
273
274
274
</Note>
275
275
276
-
#### Returns {/*returns*/}
276
+
#### 반환값 {/*returns*/}
277
277
278
-
***optional**`cleanup function`: When the `ref` is detached, React will call the cleanup function. If a function is not returned by the `ref` callback, React will call the callback again with `null` as the argument when the `ref` gets detached. This behavior will be removed in a future version.
278
+
***optional**`Cleanup 함수`: `ref`가 분리되면, React는 cleanup 함수를 호출합니다. `ref` 콜백에 의해 함수가 반환되지 않으면 React는 `ref`가 분리되면 인수로 `null`을 사용하여 다시 콜백을 호출합니다. 이 동작은 향후 버전에서 제거될 예정입니다.
279
279
280
-
#### Caveats {/*caveats*/}
280
+
#### 주의 사항 {/*caveats*/}
281
281
282
-
*When Strict Mode is on, React will **run one extra development-only setup+cleanup cycle** before the first real setup. This is a stress-test that ensures that your cleanup logic "mirrors" your setup logic and that it stops or undoes whatever the setup is doing. If this causes a problem, implement the cleanup function.
283
-
*When you pass a *different*`ref`callback, React will call the *previous* callback's cleanup function if provided. If no cleanup function is defined, the`ref`callback will be called with `null` as the argument. The *next* function will be called with the DOM node.
282
+
* Strict Mode가 켜져있으면, React는 첫 번째 실제 설정 전에 **개발 전용 Setup + cleanup 주기**를 하나 더 실행할 것입니다. 이는 스트레스 테스트로, Cleanup 로직이 Setup 로직을 "거울처럼" 따라가며 Setup이 하는 일을 중지하거나 되돌리도록 보장하기 위한 것입니다. 이 때문에 문제가 발생한다면 Cleanup 함수를 구현하세요.
283
+
**다른*`ref`콜백을 전달하면, React는 먼저 *이전* 콜백의 Cleanup 함수가 있다면 그것을 호출합니다. Cleanup 함수가 없으면, 이전`ref`콜백을 `null`을 인수로 하여 한 번 호출합니다. *다음* 함수는 DOM 노드와 함께 호출됩니다.
Copy file name to clipboardExpand all lines: src/content/reference/react-dom/components/style.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,11 @@ React는 `<style>` 컴포넌트를 문서의 `<head>`로 이동시키고, 동일
49
49
50
50
이 동작을 사용하려면 `href`와 `precedence` 속성을 제공하세요. React는 동일한 `href`를 가진 스타일의 중복을 제거합니다. `precedence` 속성은 문서의 `<head>` 내 다른 요소에 비해 `<style>` DOM 노드의 순위를 지정하며, 어떤 스타일시트가 다른 스타일시트를 덮어쓸 수 있는지를 결정합니다.
51
51
52
-
이러한 처리는 두 가지 주의 사항이 있습니다.
53
-
54
-
* 스타일이 렌더링된 후에는 React가 속성 변경을 무시합니다. (개발 중에 이 상황이 발생하면 React는 경고를 표시합니다.)
52
+
이러한 처리는 세 가지 주의 사항이 있습니다.
55
53
54
+
* 스타일이 렌더링된 후에는 React가 Props 변경을 무시합니다. (개발 중에 이 상황이 발생하면 React는 경고를 표시합니다.)
55
+
* React는 `precedence` Prop을 사용할 때 불필요한 Props를 제거합니다. (단, `href`와 `precedence`는 제외.)
56
56
* 스타일을 렌더링한 컴포넌트가 마운트 해제된 후에도 DOM에 스타일이 유지될 수 있습니다.
57
-
* React will ignore changes to props after the style has been rendered. (React will issue a warning in development if this happens.)
58
-
* React will drop all extraneous props when using the `precedence` prop (beyond `href` and `precedence`).
59
-
* React may leave the style in the DOM even after the component that rendered it has been unmounted.
60
-
61
57
---
62
58
63
59
## 사용법 {/*usage*/}
@@ -66,11 +62,11 @@ React는 `<style>` 컴포넌트를 문서의 `<head>`로 이동시키고, 동일
66
62
67
63
컴포넌트가 올바르게 표시되기 위해 특정 CSS 스타일에 의존하는 경우, 컴포넌트 내에서 인라인 스타일시트를 렌더링할 수 있습니다.
68
64
69
-
The `href` prop should uniquely identify the stylesheet, because React will de-duplicate stylesheets that have the same `href`.
70
-
If you supply a `precedence`prop, React will reorder inline stylesheets based on the order these values appear in the component tree.
65
+
React는 동일한 `href`를 가진 스타일시트의 중복을 제거하므로 `href` 속성은 스타일시트를 고유하게 식별해야 합니다.
66
+
`precedence`Prop을 제공하면 React는 컴포넌트 트리에서 해당 값이 표시되는 순서에 따라 인라인 스타일시트의 순서를 다시 지정합니다.
71
67
72
-
Inline stylesheets will not trigger Suspense boundaries while they're loading.
73
-
Even if they load async resources like fonts or images.
`renderToString` returns a string immediately, so it does not support waiting for data to load for static HTML generation.
103
+
`renderToString`은 문자열을 즉시 반환하므로, 정적 HTML 생성을 위해 데이터 로딩이 완료될 때까지 기다리는 것을 지원하지 않습니다.
104
104
105
-
We recommend using these fully-featured alternatives:
105
+
가능하면 다음과 같은 완전한 기능을 갖춘 대안을 사용하는 것을 권장합니다.
106
106
107
-
* If you use Node.js, use [`prerenderToNodeStream`](/reference/react-dom/static/prerenderToNodeStream).
108
-
* If you use Deno or a modern edge runtime with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), use [`prerender`](/reference/react-dom/static/prerender).
107
+
* Node.js를 사용하는 경우 [`prerenderToNodeStream`](/reference/react-dom/static/prerenderToNodeStream)을 사용하세요.
108
+
* Deno와 최신 엣지 런타임에서 [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)을 사용하는 경우 [`prerender`](/reference/react-dom/static/prerender)를 사용하세요.
109
109
110
-
You can continue using `renderToString` if your static site generation environment does not support streams.
110
+
정적 사이트 생성 환경에서 스트림을 지원하지 않는 경우에는 `renderToString`을 계속 사용할 수 있습니다.
0 commit comments