Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23-10-30] 3주차 양인서 #56

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sheepyis
Copy link
Collaborator

@sheepyis sheepyis commented Aug 9, 2023

과제 제출 날짜

23-10-30 (월요일)

풀이 방법

어떻게 풀었나요? 나만의 핵심 포인트를 말해주세요!

  • util 폴더 안에 있는 데이터 파일인 TodoDataset에서 이미지와 할일 목록을 받아와 useState, useEffect를 이용하여 데이터를 불러주었습니다. TodoList에 props를 이용하여 데이터를 전달해주고, map을 통해 반복하여 출력해주었습니다.

  • 버튼 활성화 상태와 비활성화 상태 시 text 변화를 주기 위해 handleClick 함수를 사용하였으며, 버튼이 활성화 상태일 때만 클릭할 수 있도록 해주었습니다.

어려웠던 점

기능을 구현하며 가장 어려웠던 부분은 뭐였나요?

  • data 파일에서 img가 images/ 부터 시작하여 todo-list부분에서 img 경로를 바꿔줘야 사진이 제대로 불러와지는데, 이 부분에서 많이 헤맸습니다.

  • 리액트 특성상 컴포넌트로 구현하다보니 데이터를 불러오는 부분 또한 3개의 컴포넌트로 쪼개졌습니다. 기존 css로 한번에 작성하던 방식과 달리 각 컴포넌트에서 styled-components를 이용하여 컴포넌트마다 스타일을 적용하기 때문에 이 부분에서 힘들었습니다.

과제 번호

@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for inspiring-fudge-67dd5e ready!

Name Link
🔨 Latest commit c879c7a
🔍 Latest deploy log https://app.netlify.com/sites/inspiring-fudge-67dd5e/deploys/653f0aed6c2ce000088eef09
😎 Deploy Preview https://deploy-preview-56--inspiring-fudge-67dd5e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sheepyis sheepyis changed the title [23-08-09] 2주차 양인서 [23-10-30] 3주차 양인서 Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant