From 64df2aa7f4e81932f9c2ea676080a0e265759689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=92=E1=85=A7=E1=86=AB=E1=84=8B?= =?UTF-8?q?=E1=85=A1?= Date: Sat, 16 Feb 2019 14:02:04 +0900 Subject: [PATCH 1/8] Translate Forms --- content/docs/forms.md | 76 ++++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 37 deletions(-) diff --git a/content/docs/forms.md b/content/docs/forms.md index 1a8b599d5..c03c61455 100644 --- a/content/docs/forms.md +++ b/content/docs/forms.md @@ -1,6 +1,6 @@ --- id: forms -title: Forms +title: 폼 permalink: docs/forms.html prev: lists-and-keys.html next: lifting-state-up.html @@ -9,7 +9,7 @@ redirect_from: - "docs/forms-zh-CN.html" --- -HTML form elements work a little bit differently from other DOM elements in React, because form elements naturally keep some internal state. For example, this form in plain HTML accepts a single name: +HTML 폼 엘리머트는 폼 엘리머트 자체가 내부 상태를 가지기 때문에, React의 다른 DOM 엘리머트와 조금 다르게 동작합니다. 예를 들어, 순수한 HTML에서 이 폼은 name을 입력받습니다. ```html
@@ -21,15 +21,15 @@ HTML form elements work a little bit differently from other DOM elements in Reac
``` -This form has the default HTML form behavior of browsing to a new page when the user submits the form. If you want this behavior in React, it just works. But in most cases, it's convenient to have a JavaScript function that handles the submission of the form and has access to the data that the user entered into the form. The standard way to achieve this is with a technique called "controlled components". +이 폼은 사용자가 폼을 전송하면 새로운 페이지로 이동하는 기본 HTML 폼 동작을 수행합니다. 만약 React에서 동일한 동작을 원한다면 그대로 사용하면 됩니다. 그러나 대부분의 경우, JavaScript 함수로 폼의 전송을 처리하고 사용자가 폼에 입력한 데이터에 접근하도록 하는 것이 편리합니다. 이를 위한 표준 방식은 "제어되는 컴포넌트 (controlled components)"라고 불리는 기술을 이용하는 것입니다. -## Controlled Components {#controlled-components} +## 제어되는 컴포넌트 (Controlled Component) {#controlled-components} -In HTML, form elements such as ``, ` ``` -In React, a ` ``` -React에서 ` ``` -React에서 ` ``` -React에서 `