-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
key={index} 추가 필요합니다.
20.05.29 16:17 작성 조회수 174
0
동작을 시켜보니 에러가 발생하여
Landing/ subscription Page 에
return <Col key={index} lg={6} md={8} xs={24}> 를 추가 하면 없어 집니다.
답변을 작성해보세요.
0
0
skywalk
질문자2020.05.29
계속 따라하면서 동작은 되지만 아래와 같은 warning 이 나오는 데요. 원인이 무엇인가요? 다른 강좌에서도 마찬 가지 였습니다.
- ./src/components/views/SubscriptionPage/SubscriptionPage.js
Line 24:8: React Hook useEffect has a missing dependency: 'variable'. Either include it or remove the dependency array react-hooks/exhaustive-deps
- /src/components/views/DetailVideoPage/Sections/Subscribe.js
Line 31:8: React Hook useEffect has a missing dependency: 'props.userTo'. Either include it or remove the dependency array react-hooks/exhaustive-deps
- ./src/components/views/DetailVideoPage/DetailVideoPage.js
Line 37:8: React Hook useEffect has a missing dependency: 'variable'. Either include it or remove the dependency array react-hooks/exhaustive-deps
수고하세요.
답변 2