We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 727022a commit 62ad138Copy full SHA for 62ad138
corrections.md
@@ -9,6 +9,22 @@
9
+ SyntheticEvent는 네이티브 이벤트와 달리 이벤트가 끝나고 나면...
10
```
11
12
+## 8.2.3 (pg. 199) - 개선사항
13
+
14
+`useEffect`를 사용하는 부분의 deps 배열이 비어있어서 ESLint 경고가 나타납니다. 이 경고를 없애기 위하여 deps 배열에 name 을 넣어주세요.
15
16
+```diff
17
+useEffect(() => {
18
+ console.log('effect');
19
+ console.log(name);
20
+ return () => {
21
+ console.log('cleanup');
22
23
+ };
24
+- }, []);
25
++ }, [name]);
26
+```
27
28
## 16.2.10 (pg. 426)
29
30
페이지 하단 설명에 오탈자가 있습니다.
0 commit comments