This is a good way to think even if you're not following this sort of structure. Just because you're not using e.g. a button for multiple purposes right now, that doesn't mean you won't as the project comes closer to fruition.
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.
I always try to solve the problem first and after that, I start to break in smaller components.
I tend to follow the principle of Atomic Design to organize my application.
I keep in mind the following directory organization:
Atoms
The smaller components commonly are the basis to start more complex ones.
Molecules
Normally here the components have a union of
atoms
, start to be useful, and be more visible.Organisms
It's a combination of
atoms
andmolecules
forming bigger sections in the application.Templates
This part consists of a group of organisms forming a page, but personally I don't use in every project I made.
This is a good way to think even if you're not following this sort of structure. Just because you're not using e.g. a button for multiple purposes right now, that doesn't mean you won't as the project comes closer to fruition.