์ปดํฌ๋„ŒํŠธ ์”Œ์›Œ์ง

ยท React
ํ˜„์žฌ useReducer๋กœ ๋งŒ๋“  ํ”„๋กœ์ ํŠธ๋ฅผ ์ค‘์•™ ์ง‘์ค‘์  ์ „์—ญ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด RTK์œผ๋กœ ๋ฆฌํŒฉํ† ๋งํ•˜๋Š” ์ค‘์ด๋‹ค. (์“ฐ์ด๋Š” ์šฉ์–ด๋Š” ๋น„์Šค๋ฌด๋ฆฌ ํ•˜์ง€๋งŒ, ๋‹ค๋ฅธ ์ ์ด ์žˆ์–ด์„œ ๋ฆฌํŒฉํ† ๋ง ํ•˜๋ฉด์„œ ๋ฐฐ์šฐ๋Š”์ค‘~) ๊ทธ๋Ÿฐ๋ฐ, Components์— ๋ณด์ด๋Š” ๊ฒƒ์ฒ˜๋Ÿผ TodoCard(-TodoItem) , CompletedCard(-CompletedItem) ๊ฐ๊ฐ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋งŒ๋“ค์—ˆ์Œ์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ , ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒผ๋‹ค. TodoCard์˜ ๋ชจ๋‹ฌ์ฐฝ์„ ์—ด์–ด์„œ ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด, CompletedCard ์•„๋ž˜์— ๋ฉ”๋ชจ๊ฐ€ ๋ˆ„์ ๋œ๋‹ค๋Š” ์ ์ด๋‹ค. ํƒ€๊ฒŸ์ด ์ž˜๋ชป๋˜์—ˆ๋‚˜ ์‹ถ์–ด import์™€ export ๋“ฑ์„ ํ™•์ธํ–ˆ์ง€๋งŒ, ๊ฒฝ๋กœ ๋ฌธ์ œ๋Š” ์—†์—ˆ๊ณ , ์˜คํƒ€์˜ ๋ฌธ์ œ๋„ ์•„๋‹ˆ์—ˆ๋‹ค... ๋ฐ๋ธŒํˆด์„ ๋ด๋„, ์ž๊พธ modalCompletedItem์ด ์—…๋ฐ์ดํŠธ ๋˜๋Š” ์ƒํ™ฉ์ด๋‹ค... const He..
becky(์ง€์€)
'์ปดํฌ๋„ŒํŠธ ์”Œ์›Œ์ง' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก