[go: up one dir, main page]

Skip to content

๐ŸŽฌ ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ : ์˜ํ™”๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ณ  ์ฆ๊ฒจ์ฐพ๊ธฐ ํ•  ์ˆ˜ ์žˆ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜

Notifications You must be signed in to change notification settings

daseuls/movie_search_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

64 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ํ”„๋กœ์ ํŠธ ์„ค๋ช…

์˜ํ™”API๋ฅผ ์ด์šฉํ•ด ์˜ํ™”๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ณ , ์ฆ๊ฒจ์ฐพ๊ธฐ ํ•  ์ˆ˜ ์žˆ๋Š” ์›น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์ž…๋‹ˆ๋‹ค.

๐Ÿš€ ๋ฐฐํฌ๋งํฌ
๊ฐœ๋ฐœ ๊ธฐ๊ฐ„ 5/9 - 5/17

์‚ฌ์šฉ๊ธฐ์ˆ , ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

๊ตฌํ˜„ ๊ธฐ๋Šฅ

1. ์˜คํ”ˆ API๋ฅผ ์ด์šฉํ•œ ์˜ํ™” ๊ฒ€์ƒ‰

  • ์˜คํ”ˆ ์˜ํ™” API๋ฅผ ์ด์šฉํ•ด ์˜ํ™”๋ฅผ ๊ฒ€์ƒ‰ํ–ˆ์„ ๋•Œ ์˜ํ™” ์ •๋ณด๋ฅผ ๋ถˆ๋Ÿฌ์˜ฌ ์ˆ˜ ์žˆ๋„๋ก ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.

    search

2. Web API Intersection Observer๋ฅผ ์ด์šฉํ•œ ๋ฌดํ•œ ์Šคํฌ๋กค

  • ์›น API์ธ Intersection Observer๋ฅผ ์ด์šฉํ•ด ๋ฌดํ•œ ์Šคํฌ๋กค์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค. observer๋ฅผ ๋งŒ๋“  ํ›„, ์˜ํ™” ๋ฆฌ์ŠคํŠธ๋“ค ๋’ค์— ๊ฐ์ง€ํ•  ์ˆ˜ ์žˆ๋Š” ํƒœ๊ทธ๋ฅผ ๋งŒ๋“ค์–ด์„œ ํ•ด๋‹น ํƒ€๊ฒŸ์ด root๋กœ ๋“ฑ๋กํ•œ ํƒœ๊ทธ์™€ ๊ฒน์ณ์กŒ์„ ๋•Œ๋ฅผ ๊ฐ์ง€ํ•ด ์ƒˆ๋กœ์šด ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์˜จ ํ›„, ๊ธฐ์กด ๋ฐ์ดํ„ฐ์— ํ•ฉ์ณ ๋ฌดํ•œ ์Šคํฌ๋กค์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.

    inifite

3. Recoil๊ณผ localStorage๋ฅผ ์ด์šฉํ•œ ์ „์—ญ ์ƒํƒœ ๊ด€๋ฆฌ, ๋กœ์ปฌ ๋ฐ์ดํ„ฐ ์ €์žฅ(๋ถ๋งˆํฌ)

  • ์ „์—ญ ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด recoil์„ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ฐ›์•„์˜จ ๋ฐ์ดํ„ฐ๋“ค์„ ์ €์žฅํ•ด ์ „์—ญ์ ์œผ๋กœ ๊ด€๋ฆฌ๋ฅผ ํ–ˆ๊ณ , ๋ถ๋งˆํฌํ•œ ๋ฐ์ดํ„ฐ๋“ค์€ localStorage์™€๋„ ๊ฐ’์ด ํ•ญ์ƒ ๊ฐ™์„ ์ˆ˜ ์žˆ๋„๋ก ์—ฐ๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ์ƒˆ๋กœ๊ณ ์นจ ์‹œ recoil์˜ ๋ฐ์ดํ„ฐ๋Š” ์‚ฌ๋ผ์ง€๊ธฐ ๋•Œ๋ฌธ์— ์ฒ˜์Œ ๋ Œ๋”๋ง ์‹œ localStorage์— ์ €์žฅ๋˜์–ด ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋ฅผ recoil์˜ store์— ์ €์žฅํ•˜์—ฌ ์ฆ๊ฒจ์ฐพ๊ธฐํ•œ ๋‚ด์šฉ๋“ค์ด ์œ ์ง€๋  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.

    store

4. react-beautiful-dnd๋ฅผ ์ด์šฉํ•œ ๋ถ๋งˆํฌ ๋ฆฌ์ŠคํŠธ ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ

  • ๋ถ๋งˆํฌํ•œ ์˜ํ™”๋ฆฌ์ŠคํŠธ๋“ค์˜ ์ˆœ์„œ๋ฅผ ๋“œ๋ž˜๊ทธํ•˜์—ฌ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ๋„๋ก react-beautiful-dnd ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. droppableํ•œ ์˜์—ญ๊ณผ draggableํ•œ ์˜์—ญ์„ ์ง€์ •ํ•ด์ฃผ๊ณ , ๋“œ๋ž˜๊ทธ๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์„ ๋•Œ ์ฝœ๋ฐฑํ•˜๋Š” onDragEnd ํ•จ์ˆ˜์— ๋‚ด์žฅ๋˜์–ด ์žˆ๋Š” ๊ฐ’์„ ํ†ตํ•ด, ๋“œ๋ž˜๊ทธํ•œ ์•„์ดํ…œ๊ณผ ๋“œ๋กญํ•œ ์•„์ดํ…œ์˜ ์ธ๋ฑ์Šค ๊ฐ’์„ ๊ตฌํ•ด ๋ฐฐ์—ด์˜ ์ˆœ์„œ๋ฅผ ๋ฐ”๊พผ ํ›„ ๊ทธ ๊ฐ’์œผ๋กœ ๊ธฐ์กด ๋ฐ์ดํ„ฐ ๊ฐ’์„ setStateํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.

    drag

About

๐ŸŽฌ ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ : ์˜ํ™”๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ณ  ์ฆ๊ฒจ์ฐพ๊ธฐ ํ•  ์ˆ˜ ์žˆ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published