• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

key={index} 추가 필요합니다.

20.05.29 16:17 작성 조회수 174

0

동작을 시켜보니 에러가 발생하여

Landing/ subscription Page 에 

return <Col key={index} lg={6} md={8} xs={24}> 를 추가 하면 없어 집니다.

답변 2

·

답변을 작성해보세요.

0

김승현님의 프로필

김승현

2020.10.01

저도 같은 내용이 궁금했습니다. userTo 또는 userFrom 을 사용하면서부터 생기는 문제들이에요. 

0

skywalk님의 프로필

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

수고하세요.