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

GET+PATCH(PUT) 예제 작성해봤습니다! #39

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

Conversation

aha-rin
Copy link
Collaborator

@aha-rin aha-rin commented Feb 6, 2025

json-server을 이용하여 GET으로 데이터를 읽어온 후 이벤트 리스너를 이용하여 스크롤 동작이 있는 경우 PATCH 요청을 보내 모든 글의 문구를 바꿉니다!
배운 거 다 때려넣어보자는 마음으로 프로미스와 setTimeout도 이용해봤습니다.
다만 아쉬운 점이 있다면 수정된 후 원래 문구로 돌아가지 않는다는 것...
스크롤 위아래 움직임에 따라서 변화하는 문구를 구분 지어 원상태로 복귀가 되도록 만들었으면 더 재밌을 수도 있었겠네요

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