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/reference/react-dom/components/input.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ title: "<input>"
30
30
31
31
#### Props {/*props*/}
32
32
33
-
`<input>` supports all [common element props.](/reference/react-dom/components/common#common-props)
33
+
`<input>`은 모든 [공통 엘리먼트 Props](/reference/react-dom/components/common#common-props)를 지원합니다.
34
34
35
35
-[`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).
Copy file name to clipboardExpand all lines: src/content/reference/react/use.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -310,7 +310,7 @@ export default async function App() {
310
310
}
311
311
```
312
312
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가 서버 컴포넌트의 렌더링을 차단하는 것을 방지할 수 있습니다.
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`함수를 그대로 반환합니다.
56
56
57
57
#### 주의 사항 {/*caveats*/}
58
58
@@ -207,7 +207,7 @@ function ProductPage({ productId, referrer }) {
207
207
이미 [`useMemo`](/reference/react/useMemo)에 익숙하다면 `useCallback`을 다음과 같이 생각하는 것이 도움이 될 수 있습니다.
208
208
209
209
```js
210
-
//Simplified implementation (inside React)
210
+
//(React 내부의) 단순화된 구현 형태
211
211
functionuseCallback(fn, dependencies) {
212
212
returnuseMemo(() => fn, dependencies);
213
213
}
@@ -221,9 +221,9 @@ function useCallback(fn, dependencies) {
221
221
222
222
#### 항상 `useCallback`을 사용해야 할까요? {/*should-you-add-usecallback-everywhere*/}
223
223
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이 매우 유용할 수 있습니다.
225
225
226
-
Caching a function with `useCallback` is only valuable in a few cases:
226
+
`useCallback`으로 함수를 캐싱하는 것은 몇 가지 경우에만 가치 있습니다.
227
227
228
228
- [`memo`](/reference/react/memo)로 감싸진 컴포넌트에 prop으로 넘깁니다. 이 값이 변하지 않으면 리렌더링을 건너뛰고 싶습니다. memoization은 의존성이 변했을 때만 컴포넌트가 리렌더링하도록 합니다.
229
229
- 넘긴 함수가 나중에 어떤 Hook의 의존성으로 사용됩니다. 예를 들어, `useCallback`으로 감싸진 다른 함수가 이 함수에 의존하거나, [`useEffect`](/reference/react/useEffect)에서 이 함수에 의존합니다.
0 commit comments