Skip to content

Commit 7ba3e27

Browse files
ckdwns9121claude
andcommitted
docs: translate requestFormReset reference to Korean
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent e8701c4 commit 7ba3e27

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎src/content/reference/react-dom/requestFormReset.md‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: requestFormReset
44

55
<Intro>
66

7-
`requestFormReset` lets you reset a React-managed form after an Action or Transition finishes.
7+
`requestFormReset`을 사용하면 Action이나 Transition이 끝난 후 React가 관리하는 폼을 초기화할 수 있습니다.
88

99
```js
1010
requestFormReset(form)
@@ -16,11 +16,11 @@ requestFormReset(form)
1616

1717
---
1818

19-
## Reference {/*reference*/}
19+
## 레퍼런스 {/*reference*/}
2020

2121
### `requestFormReset(form)` {/*requestformreset*/}
2222

23-
Call `requestFormReset` to request that a form resets after the current Action or Transition completes.
23+
현재 Action이나 Transition이 완료된 후 폼이 초기화되도록 요청하려면 `requestFormReset`을 호출하세요.
2424

2525
```js
2626
import { startTransition } from 'react';
@@ -35,30 +35,30 @@ function handleSubmit(form) {
3535
}
3636
```
3737

38-
[See more examples below.](#usage)
38+
[아래 예시를 참고하세요.](#usage)
3939

40-
#### Parameters {/*parameters*/}
40+
#### 매개변수 {/*parameters*/}
4141

42-
* `form`: an [HTML form element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement) rendered by React.
42+
* `form`: React가 렌더링한 [HTML 폼 엘리먼트](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement)입니다.
4343

44-
#### Returns {/*returns*/}
44+
#### 반환값 {/*returns*/}
4545

46-
`requestFormReset` returns nothing.
46+
`requestFormReset`은 아무것도 반환하지 않습니다.
4747

48-
#### Caveats {/*caveats*/}
48+
#### 주의 사항 {/*caveats*/}
4949

50-
* Pass a form element that is rendered by React. Passing a non-form element, or a form not managed by React, throws an error.
51-
* `requestFormReset` is intended for Actions and Transitions. If called outside an Action or Transition, React warns in development and performs a synchronous reset.
52-
* `requestFormReset` is useful when you implement form submission logic yourself (for example with `onSubmit` + `startTransition`) and still want React's form reset behavior.
53-
* This API requests a reset for uncontrolled form fields. For controlled fields, handle resets by updating state, such as in `onReset`.
50+
* React가 렌더링한 폼 엘리먼트를 전달하세요. 폼이 아닌 엘리먼트나 React가 관리하지 않는 폼을 전달하면 오류가 발생합니다.
51+
* `requestFormReset`은 Action과 Transition에서 사용하도록 만들어졌습니다. Action이나 Transition 외부에서 호출하면 React는 개발 환경에서 경고를 표시하고 폼을 동기적으로 초기화합니다.
52+
* `requestFormReset`은 폼 제출 로직을 직접 구현하면서도(예를 들어 `onSubmit` + `startTransition`) React의 폼 초기화 동작을 그대로 사용하고 싶을 때 유용합니다.
53+
* 이 API는 비제어 폼 필드의 초기화를 요청합니다. 제어 필드는 `onReset` 등에서 State를 업데이트하여 초기화를 처리하세요.
5454

5555
---
5656

57-
## Usage {/*usage*/}
57+
## 사용법 {/*usage*/}
5858

59-
### Requesting a reset in a custom form Action {/*requesting-a-reset-in-a-custom-form-action*/}
59+
### 커스텀 폼 Action에서 초기화 요청하기 {/*requesting-a-reset-in-a-custom-form-action*/}
6060

61-
React [automatically resets uncontrolled fields after a successful `<form action={...}>` submission](/reference/react-dom/components/form#handle-form-submission-with-an-action-prop). When you implement submission manually, you can opt into the same behavior by calling `requestFormReset`.
61+
React는 [`<form action={...}>` 제출이 성공하면 비제어 필드를 자동으로 초기화합니다](/reference/react-dom/components/form#handle-form-submission-with-an-action-prop). 제출을 직접 구현하는 경우에도 `requestFormReset`을 호출하면 동일한 동작을 사용할 수 있습니다.
6262

6363
```js
6464
import { startTransition } from 'react';
@@ -80,10 +80,10 @@ function SearchForm() {
8080
return (
8181
<form onSubmit={onSubmit}>
8282
<input name="query" defaultValue="react" />
83-
<button type="submit">Search</button>
83+
<button type="submit">검색</button>
8484
</form>
8585
);
8686
}
8787
```
8888

89-
If your submission uses the built-in `<form action={...}>` behavior, you don't need to call `requestFormReset` manually.
89+
내장된 `<form action={...}>` 동작으로 제출을 처리한다면 `requestFormReset`을 직접 호출할 필요가 없습니다.

0 commit comments

Comments
 (0)