feat: 11-DiceRoller 과제 구현(이윤지) - #57
Merged
Merged
Conversation
k0nghaa
reviewed
Jul 27, 2026
|
|
||
| const handleRoll = () => { | ||
| const count = Number(diceCount); | ||
| if (!Number.isInteger(count)) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 과제 요약
💡 설계 및 고민한 부분
DiceRoller컴포넌트를 분리하여 input 에 들어온 값만큼Dice컴포넌트를 렌더링하는 방식을 사용했습니다.Dice컴포넌트는 1 ~ 6 사이의 값을 props로 받아 해당 값에 맞는 주사위 눈을 렌더링하도록 구현했습니다.diceDotPositions상수로 분리하여 값별 점 위치를 데이터로 관리했습니다.📖 학습한 내용 및 어려웠던 점 (선택)
❓ 질문 사항 (선택)
📸 스크린샷 (선택)
2026-07-25.3.08.25.mov