Interesting structure! I also use something similar to this, but it always gets a little questionable once a project grows. What does your structure evolve into when you have component A, and component A has custom styles, hooks, utils and tests?
In this case I would put all the files that belong to the component into one directory. So something like this:
├── components │ ├── User │ │ │── Card │ │ │ ├── Card.css │ │ │ └── index.js │ │ │ └── test.js │ │ │ └── useCard.js
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Interesting structure! I also use something similar to this, but it always gets a little questionable once a project grows. What does your structure evolve into when you have component A, and component A has custom styles, hooks, utils and tests?
In this case I would put all the files that belong to the component into one directory. So something like this: