Skip to content

Commit ba66231

Browse files
committed
Translate comments according to the guide
1 parent 014e63c commit ba66231

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/docs/hooks-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Hook은 [하위 호환성](/docs/hooks-intro.html#no-breaking-changes)을 가지
2424
import React, { useState } from 'react';
2525
2626
function Example() {
27-
// Declare a new state variable, which we'll call "count"
27+
// "count"라는 새 상태 변수를 선언합니다
2828
const [count, setCount] = useState(0);
2929
3030
return (
@@ -48,7 +48,7 @@ function Example() {
4848

4949
```js
5050
function ExampleWithManyStates() {
51-
// Declare multiple state variables!
51+
// 상태 변수를 여러 개 선언했습니다!
5252
const [age, setAge] = useState(42);
5353
const [fruit, setFruit] = useState('banana');
5454
const [todos, setTodos] = useState([{ text: 'Learn Hooks' }]);
@@ -82,9 +82,9 @@ import React, { useState, useEffect } from 'react';
8282
function Example() {
8383
const [count, setCount] = useState(0);
8484
85-
// Similar to componentDidMount and componentDidUpdate:
85+
// componentDidMount, componentDidUpdate와 비슷합니다
8686
useEffect(() => {
87-
// Update the document title using the browser API
87+
// 브라우저 API를 이용해 문서의 타이틀을 업데이트합니다
8888
document.title = `You clicked ${count} times`;
8989
});
9090

0 commit comments

Comments
 (0)