Skip to content

Commit ff27154

Browse files
committed
wip
1 parent 4b601af commit ff27154

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/content/reference/react-dom/components/common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ export default function Form() {
917917
918918
</Sandpack>
919919
920-
Read more about [manipulating DOM with refs](/learn/manipulating-the-dom-with-refs) and [check out more examples.](/reference/react/useRef#usage)
920+
[Ref로 DOM 조작하기](/learn/manipulating-the-dom-with-refs) 및 [더 많은 예시](/reference/react/useRef#usage)에 대해 더 자세히 읽어보세요.
921921
922922
고급 사용 사례의 경우 `ref` 어트리뷰트는 [콜백 함수](#ref-callback)도 허용합니다.
923923

src/content/reference/react-dom/components/input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ title: "<input>"
3030

3131
#### Props {/*props*/}
3232

33-
`<input>` supports all [common element props.](/reference/react-dom/components/common#common-props)
33+
`<input>`은 모든 [공통 엘리먼트 Props](/reference/react-dom/components/common#common-props)를 지원합니다.
3434

3535
- [`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): A string or function. Overrides the parent `<form action>` for `type="submit"` and `type="image"`. When a URL is passed to `action` the form will behave like a standard HTML form. When a function is passed to `formAction` the function will handle the form submission. See [`<form action>`](/reference/react-dom/components/form#props).
3636

src/content/reference/react/use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default async function App() {
310310
}
311311
```
312312
313-
But using `await` in a [Server Component](/reference/rsc/server-components) will block its rendering until the `await` statement is finished. Passing a Promise from a Server Component to a Client Component prevents the Promise from blocking the rendering of the Server Component.
313+
하지만 [서버 컴포넌트](/reference/rsc/server-components)에서 `await`을 사용하면 `await` 문이 완료될 때까지 렌더링이 차단됩니다. 서버 컴포넌트에서 클라이언트 컴포넌트로 Promise를 Prop으로 전달하면 Promise가 서버 컴포넌트의 렌더링을 차단하는 것을 방지할 수 있습니다.
314314
315315
</DeepDive>
316316

src/content/reference/react/useCallback.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function ProductPage({ productId, referrer, theme }) {
5252
5353
최초 렌더링에서는 `useCallback`은 전달한 `fn` 함수를 그대로 반환합니다.
5454
55-
During subsequent renders, it will either return an already stored `fn` function from the last render (if the dependencies haven't changed), or return the `fn` function you have passed during this render.
55+
후속 렌더링에서는 이전 렌더링에서 이미 저장해 두었던 `fn` 함수를 반환하거나 (의존성이 변하지 않았을 때), 현재 렌더링 중에 전달한 `fn` 함수를 그대로 반환합니다.
5656
5757
#### 주의 사항 {/*caveats*/}
5858
@@ -207,7 +207,7 @@ function ProductPage({ productId, referrer }) {
207207
이미 [`useMemo`](/reference/react/useMemo)에 익숙하다면 `useCallback`을 다음과 같이 생각하는 것이 도움이 될 수 있습니다.
208208
209209
```js
210-
// Simplified implementation (inside React)
210+
// (React 내부의) 단순화된 구현 형태
211211
function useCallback(fn, dependencies) {
212212
return useMemo(() => fn, dependencies);
213213
}
@@ -221,9 +221,9 @@ function useCallback(fn, dependencies) {
221221
222222
#### 항상 `useCallback`을 사용해야 할까요? {/*should-you-add-usecallback-everywhere*/}
223223
224-
If your app is like this site, and most interactions are coarse (like replacing a page or an entire section), memoization is usually unnecessary. On the other hand, if your app is more like a drawing editor, and most interactions are granular (like moving shapes), then you might find memoization very helpful.
224+
이 사이트처럼 대부분의 상호작용이 (페이지 전체나 전체 부문을 교체하는 것처럼) 굵직한 경우, 보통 memoization이 필요하지 않습니다. 반면에 앱이 (도형을 이동하는 것과 같이) 미세한 상호작용을 하는 그림 편집기 같은 경우, memoization이 매우 유용할 수 있습니다.
225225
226-
Caching a function with `useCallback` is only valuable in a few cases:
226+
`useCallback`으로 함수를 캐싱하는 것은 몇 가지 경우에만 가치 있습니다.
227227
228228
- [`memo`](/reference/react/memo)로 감싸진 컴포넌트에 prop으로 넘깁니다. 이 값이 변하지 않으면 리렌더링을 건너뛰고 싶습니다. memoization은 의존성이 변했을 때만 컴포넌트가 리렌더링하도록 합니다.
229229
- 넘긴 함수가 나중에 어떤 Hook의 의존성으로 사용됩니다. 예를 들어, `useCallback`으로 감싸진 다른 함수가 이 함수에 의존하거나, [`useEffect`](/reference/react/useEffect)에서 이 함수에 의존합니다.

0 commit comments

Comments
 (0)