FeatureNameAndFileType.extension
Examples:
DashboardComponent.jsx
UserApiService.js
ProfileImageStyles.css
All files related to a feature should be stored in the same folder. The folder should be named after the feature it represents.
Child components that are only relevant to this feature should be stored in subfolders of the main feature folder.
A _shared
file (preceded by an underscore so that it is listed in the top of the structure in sort order) should be used for any files used across multiple features. For instance, shared components, services, utilities, styles, etc.
├── _shared
│ └── components
│ └── UserProfile
│ ├── UserProfileComponent.jsx
│ └── UserProfileStyles.jsx
│ └── UserAvatar
│ ├── UserAvatarComponent.jsx
│ └── UserAvatarStyles.jsx
│ └── UserStatus
│ ├── UserStatusComponent.jsx
│ └── UserStatusStyles.jsx
│ └── services
│ ├── GroupApiService.js
│ └── UserApiService.js
├── Dashboard
│ ├── DashboardComponent.jsx
│ ├── DashboardStyles.js
│ └── tiles
│ └── QuickLinks
│ ├── QuickLinksComponent.jsx
│ └── QuickLinksStyles.js