Open
Conversation
hyun907
approved these changes
Jul 27, 2025
Member
There was a problem hiding this comment.
미니 블로그 과제까지 고생하셨습니다!
전체적으로 React 기본기도 잘 잡혀 있고, 컴포넌트랑 스타일 분리도 깔끔한 것 같아요!
PR 포인트에 대해 설명드리자면,
- 컴포넌트 분리와 유지보수 관련한 점:
프론트엔드 개발자로, 컴포넌트 분리와 유지보수 고려하는 건 정말 중요한 일이에요!
- 하나의 컴포넌트가 하나의 역할만 맡게 피처를 나눈다거나
- 상태와 스타일, 이벤트 처리를 컴포넌트 내부로 숨긴다거나
- 기능 단위, 역할 단위 중 하나로 일관되게 구조화한다거나
다양한 방법이 있을 것 같아요!
처음에는 "내가 어떻게 나누면 다른 사람들이 보기에 편할까?" 라는 질문에 답을 하듯 코드를 작성해보세요!
그 후에 어느정도 감이 잡히면, 본인 관심사에 맞게 아티클도 읽어보고 직접 작성해보는 연습을 하면 좋을 것 같아요!
- husky 관련한 점:
yarn install -D husky
npx husky init
해당 명령어 실행 후, 적용해보시고 안 되시면 다시 연락 주세요!
참고로 허스키는 .git 이 있는 Git 저장소 루트 위치에서 실행해야 동작한다고 합니다!
- AI 관련한 점:
AI를 쓸 땐 ‘설명자’로 써야지, ‘코드 작성해줘’로 쓰는 건 저는 비추천합니다.
예시 – 나쁜 질문: “이거 코드 짜줘”
예시 – 좋은 질문: “이거 내가 이렇게 짰는데 왜 안 되지?”, “for문 안에 이 조건이 왜 필요한지 설명해줘”
→ 본인이 생각한 대로 먼저 적고, 그다음 AI에게 검토나 설명을 요청해야 사고력과 구현력이 함께 늘 수 있습니다. 저도 실제로 먼저 생각한 다음, 안 된다면 그 다음에 구체적으로 도움을 요청하는 편입니다!
| return ( | ||
| <ListContainer> | ||
| <SectionTitle>📚 글 목록</SectionTitle> | ||
| {posts.length === 0 && <p>작성된 글이 없습니다.</p>} |
Member
There was a problem hiding this comment.
적절한 피드백 (빈 목록 메시지) 처리 디테일 좋습니다!
| const [comment, setComment] = useState(''); | ||
|
|
||
| const handleSubmit = () => { | ||
| if (!comment) return; |
Member
There was a problem hiding this comment.
지금은 스터디 프로젝트라 괜찮지만,
코멘트가 없을 경우에만 얼리 리턴보다는
실제 서비스를 개발 하신다면, 이렇게 사용자에게 피드백 주는 방식도 좋은 것 같아요!
Suggested change
| if (!comment) return; | |
| if (!title.trim() || !content.trim()) { | |
| alert('제목과 내용을 모두 입력해주세요!'); | |
| 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.
✨어떤 과제를 수행했나요?✨
✨어려웠던점, 트러블슈팅✨
🤔 PR Point