React’s unopinionated approach frequently raises questions: “Where should I put my files? How should I organize my code?” This write-up reflects my observations of these folder structures evolving in a growing codebase. It also includes a short list of best practices and a challenge to turn a design from my upcoming course into a feature-based folder structure.

16m read timeFrom dev.to
Post cover image
Table of contents
Table of ContentsPrototype: Group by file typesInvestment: More files → nestingGrowth: We need pagesWorld Domination: ColocationExit: Group by FeaturesDiscussion: Feature-Driven Folder Structure and Screaming ArchitectureBest practicesChallenge: How would you structure a project based on this design?
1 Comment

Sort: