Skip to content

Commit 4f82d07

Browse files
authored
Merge branch 'master' into lists-and-keys
2 parents bcae4d5 + 11f60d8 commit 4f82d07

File tree

6 files changed

+112
-113
lines changed

6 files changed

+112
-113
lines changed

content/docs/faq-ajax.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
id: faq-ajax
3-
title: AJAX and APIs
3+
title: AJAX APIs
44
permalink: docs/faq-ajax.html
55
layout: docs
66
category: FAQ
77
---
88

9-
### How can I make an AJAX call? {#how-can-i-make-an-ajax-call}
9+
### 어떻게 AJAX 호출을 할 수 있을까요? {#how-can-i-make-an-ajax-call}
1010

11-
You can use any AJAX library you like with React. Some popular ones are [Axios](https://github.com/axios/axios), [jQuery AJAX](https://api.jquery.com/jQuery.ajax/), and the browser built-in [window.fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
11+
당신이 선호하는 AJAX 라이브러리를 React와 함께 사용할 수 있습니다. 유명한 라이브러리로는 [Axios](https://github.com/axios/axios), [jQuery AJAX](https://api.jquery.com/jQuery.ajax/), 그리고 브라우저에 내장된 [window.fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) 등이 있습니다.
1212

13-
### Where in the component lifecycle should I make an AJAX call? {#where-in-the-component-lifecycle-should-i-make-an-ajax-call}
13+
### 컴포넌트의 생명주기 중 어디에서 AJAX 호출을 할 수 있나요? {#where-in-the-component-lifecycle-should-i-make-an-ajax-call}
1414

15-
You should populate data with AJAX calls in the [`componentDidMount`](/docs/react-component.html#mounting) lifecycle method. This is so you can use `setState` to update your component when the data is retrieved.
15+
AJAX 호출을 통한 데이터는 생명주기 메서드 중 [`componentDidMount`](/docs/react-component.html#mounting) 안에 추가되어야 합니다. 이는 데이터를 받아 올 때 `setState`를 통하여 컴포넌트를 업데이트하기 위함입니다.
1616

17-
### Example: Using AJAX results to set local state {#example-using-ajax-results-to-set-local-state}
17+
### 예시: 로컬 state를 설정하기 위해 AJAX 결과 사용하기 {#example-using-ajax-results-to-set-local-state}
1818

19-
The component below demonstrates how to make an AJAX call in `componentDidMount` to populate local component state.
19+
아래 컴포넌트는 로컬 컴포넌트의 state를 채우기 위하여 `componentDidMount` 안에서 어떻게 AJAX 호출을 만드는지 보여 줍니다.
2020

21-
The example API returns a JSON object like this:
21+
API 예시는 다음과 같은 JSON 객체를 반환합니다.
2222

2323
```
2424
{
@@ -50,9 +50,9 @@ class MyComponent extends React.Component {
5050
items: result.items
5151
});
5252
},
53-
// Note: it's important to handle errors here
54-
// instead of a catch() block so that we don't swallow
55-
// exceptions from actual bugs in components.
53+
// 주의: 컴포넌트의 실제 버그에서 발생하는 예외사항들을 넘기지 않도록
54+
// 에러를 catch() 블록(block)에서 처리하기보다는
55+
// 이 부분에서 처리하는 것이 중요합니다.
5656
(error) => {
5757
this.setState({
5858
isLoaded: true,

content/docs/faq-build.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
---
22
id: faq-build
3-
title: Babel, JSX, and Build Steps
3+
title: Babel, JSX, 그리고 빌드 과정들
44
permalink: docs/faq-build.html
55
layout: docs
66
category: FAQ
77
---
88

9-
### Do I need to use JSX with React? {#do-i-need-to-use-jsx-with-react}
9+
### React에 JSX를 꼭 사용해야 하나요? {#do-i-need-to-use-jsx-with-react}
1010

11-
No! Check out ["React Without JSX"](/docs/react-without-jsx.html) to learn more.
11+
아니요! 더 자세한 내용을 위해 ["JSX 없이 React 사용하기"](/docs/react-without-jsx.html) 를 확인해 주세요.
1212

13-
### Do I need to use ES6 (+) with React? {#do-i-need-to-use-es6--with-react}
13+
### React에 ES6 (+)를 꼭 사용해야 하나요? {#do-i-need-to-use-es6--with-react}
1414

15-
No! Check out ["React Without ES6"](/docs/react-without-es6.html) to learn more.
15+
아니요! 더 자세한 내용을 위해 ["ES6 없이 React 사용하기"](/docs/react-without-es6.html) 를 확인해 주세요.
1616

17-
### How can I write comments in JSX? {#how-can-i-write-comments-in-jsx}
17+
### JSX에서 어떻게 주석을 달 수 있나요? {#how-can-i-write-comments-in-jsx}
1818

1919
```jsx
2020
<div>
21-
{/* Comment goes here */}
21+
{/* 주석은 여기에 */}
2222
Hello, {name}!
2323
</div>
2424
```
2525

2626
```jsx
2727
<div>
28-
{/* It also works
29-
for multi-line comments. */}
28+
{/* 여러 줄의
29+
주석도 가능합니다. */}
3030
Hello, {name}!
3131
</div>
3232
```

content/docs/hooks-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function Counter({initialCount}) {
6767
}
6868
```
6969

70-
The "+" and "-" buttons use the functional form, because the updated value is based on the previous value. But the "Reset" button uses the normal form, because it always sets the count back to 0.
70+
The "+" and "-" buttons use the functional form, because the updated value is based on the previous value. But the "Reset" button uses the normal form, because it always sets the count back to the initial value.
7171

7272
> Note
7373
>

0 commit comments

Comments
 (0)