-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 방 관리 기능 완성 #137
feat: 방 관리 기능 완성 #137
Conversation
✅ Deploy Preview for moabam-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
상훈님 기능 완성하시느라 수고 많으셨어요 부족함이 없는 코드였네요👍🏻
onChange={(e) => setConfirmInput(e.target.value)} | ||
/> |
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.
p1; onChange에 들어가는 함수는 따로 함수를 선언해서 쓰면 어떨까요?
https://www.notion.so/prgrms/FE-568228d7d8f64051b5652548944214e9?pvs=4#e81e072bdf404604862aee5f488e1de4
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.
엇.. 요기선 세터 함수를 호출하는 한 줄의 로직을 수행하는 것이라 구현이 드러나는 방법을 선택했어요!!
(Input 컴포넌트의 동작을 바로 확인할 수 있게 colocation 하는 느낌?)
물론 onChange
동작이 몇 줄 단위로 복잡해진다면, 다른 핸들러 함수로 빼는 것이 좋겠지만.. 한 줄 로직도 빼는것이 좋을까요!?
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.
아하 그것도 괜찮네요! 한 줄 일 때는 그대로 코드를 작성하는 걸로 할까요? 💡
🧩 이슈 번호
✅ 작업 사항
👩💻 공유 포인트 및 논의 사항
방장 위임, 멤버 추방
GOMCAM.20231114_0234460059.mp4
방 삭제
GOMCAM.20231114_0238470799.mp4