Skip to content

taehyunkim3/infinitescroll-react-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๋‚œ๊ด€

  1. 15ํŽ˜์ด์ง€์ฏค์—์„œ name์„ ์ฝ์„์ˆ˜ ์—†๋‹ค๊ณ  ํ•จ
  • data์˜ ๊ธฐ๋ณธ๊ฐ’์„ ์„ค์ •ํ•ด์ค˜์„œ, ํ•ด๋‹น ๋ฐ์ดํ„ฐ๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์•„๋„ ์˜ค๋ฅ˜๊ฐ€ ์ผ์–ด๋‚˜์ง€ ์•Š๋„๋ก ํ•จ.
  1. InterSectionObserver ์‚ฌ์šฉ ์–ด๋ ค์›€ (์ง„ํ–‰์ค‘)
  2. ์ฝ”๋“œ ์Šคํ”Œ๋ฆฌํŒ… ํ•„์š”ํ•จ.(์ง„ํ–‰์ค‘)

์‹œ๋„

  1. ์Šค์ผˆ๋ ˆํ†ค UI์‚ฌ์šฉ @keyframes skeleton-gradient { 0% { background-color: rgba(165, 165, 165, 0.1); } 50% { background-color: rgba(165, 165, 165, 0.3); } 100% { background-color: rgba(165, 165, 165, 0.1); } }

    animation: skeleton-gradient 1.5s infinite ease-in-out;

์ฐธ๊ณ ์ž๋ฃŒ

MDN Intersection Observer API

๋ฌดํ•œ์Šคํฌ๋กค ๊ด€๋ จ ํฌ์ŠคํŒ…

https://velog.io/@tech-hoon/skeleton-ui


๋ชฉ์ฐจ

๋ฆฌ์•กํŠธ ์ธํ”ผ๋‹ˆํ‹ฐ์Šคํฌ๋กค ๊ธฐ๋Šฅ ๊ตฌํ˜„

๊ฐœ์š”

๊ฐ๊ฐ์˜ ๋ฆฌ์•กํŠธ๋ฅผ ๋‹ค๋ฃจ๋Š” ํผ์ด๋‚˜ ์ž์ฃผ์“ฐ๋Š” ๊ธฐ๋Šฅ์„ ๋‹จ์‹œ๊ฐ„๋‚ด์— ๊ตฌํ˜„ํ•˜๋Š”๊ฒƒ์„ ์—ฐ์Šตํ•˜์—ฌ ๋กœ์ง์ด๋‚˜ ํ›…์„ ํ†ตํ•œ ๊ธฐ๋Šฅ ๊ตฌํ˜„ ์„ ์นœ์ˆ™ํ™”ํ•˜๋Š”๊ฒƒ์„ ๋ชฉํ‘œ๋กœ ์‹œ์ž‘

์Šคํ„ฐ๋””์›๐Ÿค”


๋””์ž์ธ ํƒ 1

์ธํ”ผ๋‹ˆํ‹ฐ์Šคํฌ๋กค OPEN API

HOT! dog API

  • ๋ฐ‘์— pricing ์— signupFree ๋ฅผ ๋ˆŒ๋Ÿฌ์„œ ์ด๋ฉ”์ผ์ ๊ณ  ์‚ฌ์šฉํ•˜๋Š” ์ด์œ  ์ ๊ณ  ํ™•์ธ๋ˆŒ๋Ÿฌ์„œ ์ด๋ฉ”์ผ๋กœ key๋ฐ›๊ณ  axios ๋ฐ›์•„๋ณด๊ธฐ

react ์ƒ์„ฑ

npm init vite

Eslint prettier

์ž์œ 

CSS ํ”„๋ ˆ์ž„์›Œํฌ (์Šคํƒ€์ผ) ์ž์œ 

  • styled-components
  • Emotion
  • Styled-jsx
  • Material-UI
  • tailwind CSS
  • SCSS

TS ์ž์œ 

์™„์„ฑ์กฐ๊ฑด

  • STEP 1 : ๋ฆฌ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค๊ณ  ๋ฆฌ์ŠคํŠธ ๋ฐ‘์— LOAD MORE ๋ฒ„ํŠผ์„ ๋งŒ๋“ค๊ณ  LOAD MORE ๋ˆ„๋ฅด๋ฉด ๋ชฉ๋ก ์ถ”๊ฐ€

  • STEP 2 : ์Šคํฌ๋กค์ด ๋งจ ๋ฐ”๋‹ฅ์„ ๋ฐ”๋ผ๋ณด๋ฉด ๋กœ๋“œ

  • STEP 3 : ํ™•๋Œ€ ์ถ•์†Œ๋ฅผ ํ•ด๋„ ๋ฌธ์ œ์—†์ด ๋˜๋Š”์ง€

  • ์™„์„ฑ

    ๋ฆฌํŒฉํ† ๋ง ์ถ”์ฒœ

  • ์ด๋ฏธ์ง€ ๋ฏธ๋ฆฌ ๋กœ๋”ฉ , ํผํฌ๋จผ์Šค ๊ฐœ์„  , ์™„์„ฑํ• ๋•Œ ํผํฌ๋จผ์Šค์™€ ์ตœ์ ํ™”ํ›„ ํผํฌ๋จผ์Šค ๋น„๊ต, ์ธํ”ผ๋‹ˆํ‹ฐ์Šคํฌ๋กค UX๊ฐœ์„  ๋“ฑ

์‹œ๊ฐ„

  • ํ† ์š”์ผ ์ง‘์ค‘์ฝ”๋”ฉ์‹œ๊ฐ„ 3~9

๋ถ€ํƒ

  • ๊ฐ ์Šคํ…๋ณ„ ์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ–ˆ๋Š”์ง€ ๋ฐœํ‘œ๋•Œ ๋ง์”€ํ•ด์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.
  • ๋งŒ์•ฝ์— ๋ญ”๊ฐ€๋ฅผ ํ•ด๊ฒฐํ–ˆ์„๋•Œ ์ฃผ์„์œผ๋กœ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹น
  • (~ํ•ด์„œ ~๋กœ ํ•ด๊ฒฐํ–ˆ๋‹ค).
  • ๋ฆฌํŒฉํ† ๋ง์— ๋„ˆ๋ฌด ๋งŽ์€ ์‹œ๊ฐ„ ์•ˆ์“ฐ์…จ์œผ๋ฉด ํ•ด์š” !! ๊ฐœ๋ฐœ์— ์žก์•„๋จนํž™๋‹ˆ๋‹ค

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published