Inflearn コミュニティ Q&A
key={index} 추가 필요합니다.
作成
·
291
0
동작을 시켜보니 에러가 발생하여
Landing/ subscription Page 에
return <Col key={index} lg={6} md={8} xs={24}> 를 추가 하면 없어 집니다.
回答 2
0
0
계속 따라하면서 동작은 되지만 아래와 같은 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
수고하세요.





