Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔗 배포 페이지
✨ 구현 기능 명세
🌼 PR Point
Recoil
기존에 contextAPI로 관리하고있었던 레벨과 점수를 levelState와 scoreState라는 recoilState로 관리했습니다!Typescript
여려군데에 사용되는 타입은 따로 밖에 정의해주었습니다. 근데 여러군데 사용되는게 요거밖에 없었네용...Trouble Shooting
이미지 사용과 관련된 에러메시지
이 자료를 통해 해결 했는데, src 폴더에 custom.d.ts 파일을 만들어서 아래와 같이 지정해줌으로써 해결됐습니다.
event를 사용할 때 type 지정
event를 사용하는 지점에서 이런 오류가 있었어요!
이 자료를 통해 해결 했는데, event의 type과 target의 타입을 분리시켜 지정해주면 해결이 됩니다.
<기존>
<변경>
🥺 소요 시간, 어려웠던 점
4.5h
🌈 구현 결과물
🔗 배포 페이지
236503303-f3fc4d08-50e9-473f-94b7-92568d95c6c5.mp4