Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ถ๊ฐ ๋ฐ์ดํฐ ๋ก๋ฉ ์ ๋ณด์ฌ์ค ์ค์ผ๋ ํค UI ๊ฐ์๋ฅผ
LIST_LIMIT_ARRAY.slice(0, 2)๋ฅผ ํตํด ์ ์ดํ๊ณ ๊ณ์ญ๋๋ค. ์ด ๋ฐฉ๋ฒ์LIST_LIMIT์์์ ์์กด์ฑ์ ๊ฐ๊ฒ ๋์ด, ๋ง์ฝLIST_LIMIT๊ฐ์ด 2 ๋ฏธ๋ง์ผ๋ก ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ ์๋์ ๋ค๋ฅด๊ฒ 2๊ฐ๋ณด๋ค ์ ์ ์ค์ผ๋ ํค์ด ๋ ๋๋ง๋ ์ ์์ต๋๋ค.ํญ์ 2๊ฐ์ ์ค์ผ๋ ํค์ ํ์ํ๋ ๊ฒ์ด ๋ชฉ์ ์ด๋ผ๋ฉด,
Array.from({ length: 2 })๋ฅผ ์ฌ์ฉํ์ฌLIST_LIMIT์ ๋ณ๊ฒฝ๊ณผ ๋ฌด๊ดํ๊ฒ ํญ์ 2๊ฐ์ ์์๋ฅผ ๊ฐ์ง ๋ฐฐ์ด์ ์์ฑํ๋ ๊ฒ์ด ๋ ๋ช ํํ๊ณ ์์ ํ ๋ฐฉ๋ฒ์ ๋๋ค.