Skip to content

wanted-pre-onboarding/pre-onboarding-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. 과제 소개

  • 하얀마인드(HayanMind)에서 제공한 기업 과제
  • API와 연동하여 무한 스크롤(Infinite Scroll)을 구현해보자

1-1. 기술 스택

React React Hooks Intersection Observer API

Intersection Observer API

  • IntersectionObserverEntry의 속성을 활용하면 getBoundingClientRect()를 호출한 것과 같은 효과
  • 리플로우 현상을 방지

1-2. 구현 목록

  • figma를 참고한 카드 스타일링
  • JSON 데이터 Fetching
  • 무한 스크롤 구현

2. 설치 및 실행

git clone https://github.com/tech-hoon/pre-onboarding-1

cd pre-onboarding-1

npm install && npm start

3. 구조

📦src
 ┣ 📂api
 ┃ ┗ 📜fetchData.js
 ┣ 📂assets
 ┃ ┗ 📂css
 ┃ ┃ ┣ 📜App.css
 ┃ ┃ ┣ 📜Card.css
 ┃ ┃ ┣ 📜InfiniteScrollList.css
 ┃ ┃ ┗ 📜reset.css
 ┣ 📂components
 ┃ ┣ 📜Card.jsx
 ┃ ┗ 📜InfiniteScrollList.jsx
 ┣ 📂utils
 ┃ ┗ 📜config.js
 ┣ 📜App.jsx
 ┗ 📜index.js

4. 데모

ezgif com-gif-maker

About

원티드 프리온보딩 코스 과제 1 - Infinite Scroll

Resources

Stars

Watchers

Forks