Closed ys112 closed 2 weeks ago
Could you move
QuestionComponent
andquestions.module.css
tocomponents
folder instead? I thinkroutes
should contain code for route and (maybe) data fetching only. Having css files underroutes
is not good for organising.I suggest that we can organise the
components
folder either by functionality (a component is a Form/Modal or a whole page) or by business domain (a component is for Question-related routes or User routes). It might look like this:└── src/ └── components/ ├── Pages/ │ └── Question/ │ └── QuestionListPage.tsx ├── Modal/ │ └── ModalView.tsx ├── NumberedPageList.tsx └── Form/ └── Question/ └── QuestionForm.tsx
Code is now organised using business domain.