What belongs in a shared components folder?
Truly reused UI pieces like buttons and modals. Do not dump everything there; only components used across multiple features. Otherwise the folder becomes a junk drawer that is hard to navigate.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in Structuring a Large React Project Like a Netflix Clone
Group files by feature, not by file type. Separate presentational components from data and logic. Centralize API calls, routes, and config. Have a shared folder for truly reused components. This keeps the project findable and maintainable.
Because it keeps related code together. A 'browse' feature has its components, hooks, and styles in one place, so you find everything about it quickly. Grouping by file type scatters related code across many folders.
Yes. Put all API calls in one place like an api folder. This makes the API surface easy to find, change, and mock in tests, instead of having fetch calls scattered across many components.
Still have questions?
Browse all our FAQs or reach out to our support team
