Replies: 2 comments
-
|
문제점 : 하나의 페이지에서 여러 컴포넌트를 선언할 경우, 각 컴포넌트에서 Props를 받아야 하는 경우가 생기게 되는데, 이러한 경우 문제가 생긴다. |
Beta Was this translation helpful? Give feedback.
0 replies
-
결론위와 같은 문제점의 이유로 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
현재 저희는 Gloddy Code Convention에 따라
각 컴포넌트에서
컴포넌트명Props라는 이름으로 interface를 만들었습니다.타 프로젝트를 둘러보던 중, 획기적인 방법을 찾아냈습니다. 사실, 생각해보면 단순한 방법입니다.
컴포넌트명을 붙히지 않고, Props로 네이밍을 하는 것입니다. 대부분의 컴포넌트가 props를 받아올텐데, 굳이
컴포넌트명을 붙혀줄 필요가 있을까요?참고 프로젝트 : 디프만 GGOGEET-Client
Beta Was this translation helpful? Give feedback.
All reactions