-
Notifications
You must be signed in to change notification settings - Fork 10
[4주차] 이주희 미션 제출합니다 #20
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
base: master
Are you sure you want to change the base?
Conversation
디테일 부분 추가
상대랑 본인을 같은 사람으로 인식
이제 다들 내 더러운 코드를 볼 수 있겠지
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.
시험이 아직 안 끝났는데 수고했어요~
주희님도 새로고침하면 404 에러가 뜨시군요, 저도 방금 고쳤어요! 이 파일 추가해야 한다고 합니다~!~!
// vercel.json
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}
src/assets/font.ts
Outdated
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.
css 파일로 폰트를 설정하고 있으니 이 파일은 지워도 괜찮을 거 같아요.
@@ -0,0 +1,118 @@ | |||
import { useAtom } from "jotai"; |
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.
오 jotai를 쓰셨네요... 열심히 보고 참고할게요!!
const ChatPage = () => { | ||
return ( | ||
<> | ||
<PageHeader> |
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.
네이밍이 PageContainer가 더 적절할 거 같아요~!
export const userAtom = atom<UserListItem>({ | ||
user: { id: 1, name: "이주희", status: "대화 가능" }, | ||
phoneNumber: "010-1234-5678", | ||
birth: "2003-08-07", | ||
email: "[email protected]", | ||
}); |
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.
phoneNumber, birth, email도 현재 유저에 종속된 정보일텐데 user 객체를 별도로 분리하신 건가요?
vite.config.ts
Outdated
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.
svgr 쓰면 svg 파일을 컴포넌트처럼 불러와 사용할 수 있어서 보일러플레이트도 줄고 편한 것 같습니다!
느낀점: 시험이라.. 준비를 많이 못했습니다,, ㅜㅜ
1. React Router의 동적 라우팅(Dynamic Routing)
사용하는 경우
=> 데이터에 따라 URL이 달라지는 경우 동적 라우팅을 사용
2. 네트워크 속도가 느린 환경에서 사용자 경험을 개선하는 방법
UI/UX 디자인 전략
기술적 최적화 방법
3. React에서 useState, useReducer, Context API, 전역 상태 관리 라이브러리 비교
useState
useReducer
Context API
전역 상태 관리 라이브러리(Redux, Zustand ,,,)