Discussion: File structure for components #2844
Replies: 1 comment
-
Hi @lindapaiste, This is a crucial discussion, and I appreciate you initiating it. Component organization is often a challenge, and having a consistent structure is essential for maintainability. Well I have some thoughts on the questions you've raised:
Considering these factors, a hybrid approach might also be beneficial. For instance, having a general I'd love to hear what others think and if there's a preference for a particular structure based on practical experience. |
Beta Was this translation helpful? Give feedback.
-
Sometimes I'm not sure which directory is the best place to put a component so I'd love to open a discussion on this! I think no one has really been sure. As a result, there's not a concrete or consistent explanation for where everything is placed right now.
We have multiple folders for components:
/client/common
/client/components
/components
folders in each "module". For example,/client/modules/User/components
and/client/modules/IDE/components
Questions to consider when placing a component:
Header
) or is it "atomic" (like theButton
)?Beta Was this translation helpful? Give feedback.
All reactions