-
Notifications
You must be signed in to change notification settings - Fork 0
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
배너 퍼블리싱 #39
배너 퍼블리싱 #39
Conversation
src/Components/Banner/index.tsx
Outdated
<_.BannerImg src={banner} /> | ||
<_.BannerImg src={banner} /> | ||
<_.BannerImg src={banner} /> | ||
<_.BannerImg src={banner} /> |
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.
p2) Array.form으로 하는 게 더 좋아보여요.
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.
배너가 다 다르다면 따로 constant 폴더에 파일 하나 만들고 그 파일에서 배열로 관리하면 좋을 것 같아요.
그걸 import 해서 map으로 돌리면 유지보수적으로도 좋아요.
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> | ||
<_.TempleteImg src={banner} /> |
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.
p2) 위와 같음.
p1) 전체적으로 디자인 시스템을 안 쓰고 있는데 한 번 써보면 좋을 것 같아요. |
{ | ||
path: 'Banner', | ||
element: <BannerPage />, | ||
}, | ||
{ | ||
path: 'CreateBanner', | ||
element: <CreateBannerPage />, | ||
}, |
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.
위의 이름도 잘못 되었지만 원래 path 네이밍은 대문자가 들어가면 안됩니다. 또한 소문자로만 구성하며 구분자로 사용할 때에는 하이픈(-)을 사용하는 것이 좋아요.
참고 글이니 확인해보세요
https://velog.io/@caesars000/RESTful-API-%EA%B0%80%EC%9D%B4%EB%93%9C
특이사항
관련 이슈