Sorry for the delay, I took a small hiatus after writing this.
That is a good question.
On the one hand, I like to keep private sub-components of a module in the ModuleName\components folder.
But once a component becomes used in multiple places, I usually pull it up to the root components\ folder (and import from my "Components/MyComponent" alias).
Another option would be to change the signature of the modules export to have a default (which would be our contract) and named exports for internal component sharing.
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.
Sorry for the delay, I took a small hiatus after writing this.
That is a good question.
On the one hand, I like to keep private sub-components of a module in the ModuleName\components folder.
But once a component becomes used in multiple places, I usually pull it up to the root components\ folder (and import from my "Components/MyComponent" alias).
Another option would be to change the signature of the modules export to have a default (which would be our contract) and named exports for internal component sharing.