TIL_20.06.04(목) - reference code

nRecode·2020년 6월 4일
0

TodayILearned

목록 보기
54/95
post-thumbnail

어제 블로그 작성 안했네... 어제는 코드스테이츠에서 간단한(?) 시험을 봤다.

서버와 클라이언트를 작성하는데,
서버는 클라이언트의 요청에 따라 영화 리스트 데이터를 내려주고,
특정 id를 받았을 때, 특정 데이터만 내려주었다.
react와 express를 이용했다.

그리고 클라이언트는 받은 데이터를 render하고 movie를 클릭 했을 때, currentMovie의 데이터가 바꿜 수 있도록 이벤트를 설정하는 시험이었다.

Warning: Encountered two children with the same key, `5512`. 
Keys should be unique so that components maintain their identity across updates. 
Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
Warning: Can't call setState on a component that is not yet mounted. 
This is a no-op, but it might indicate a bug in your application. 
Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the App component.

테스트 케이스는 모두 통과가 되는데 콘솔 오류가 났다...
그래서 콘솔오류를 해결하고 싶어서 이것 저것 많이 찾아봤는데, 다 와닿지 않고 reference코드와 비슷한데... 왜 오류가 나는지 멘붕와가지고... helpdesk에 올려놓은 상태이다...

profile
안정성, 확장성 있는 서버를 구축하고 가꾸는 개발자를 목표로 공부하고 있습니다. 🤔🤔🤔🤔 부족하기에 맞지 않는 내용이 있을 수 있습니다. 가감없이 피드백 해주시면 정말 감사하겠습니다..🙏

0개의 댓글