Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change translation
  • Loading branch information
rlagksruf16 committed Feb 26, 2019
commit 1322ec4719eb3d36bf68da3eefc6f7abbf423c50
5 changes: 3 additions & 2 deletions content/docs/state-and-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ class Clock extends React.Component {
}
```

2) Add a [클래스 constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes#Constructor) that assigns the initial `this.state`:
2) 초기 `this.state`를 지정하는 [class constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes#Constructor)를 추가합니다.
2) Add a [class constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes#Constructor) that assigns the initial `this.state`:
2) 초기 `this.state`를 지정하는 [클래스 constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes#Constructor)를 추가합니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다!


```js{4}
class Clock extends React.Component {
Expand Down Expand Up @@ -304,6 +304,7 @@ We will tear down the timer in the `componentWillUnmount()` lifecycle method:

Finally, we will implement a method called `tick()` that the `Clock` component will run every second.
마지막으로 `Clock` 컴포넌트가 매초 작동하도록 하는 `tick()`이라는 메서드를 구현해 보겠습니다.

It will use `this.setState()` to schedule updates to the component local state:
이것은 컴포넌트 로컬 state를 업데이트하기 위해 `this.setState()`를 사용합니다.

Expand Down