Folder Structure & Naming Conventions
Organize a React project with feature-based folders and clear file names.
Welcome
In this lesson you will explore common folder structures for React projects, learn naming conventions for files and components, and understand how to organise code as the project grows.
The Default Structure
A minimal Vite + React project has `src/App.jsx` and `src/main.jsx`. This is fine for small demos but does not scale. As you add features, create dedicated folders to keep related code together.
src/
main.jsx
App.jsx
index.cssAll lessons in this course
- What StrictMode Does
- Pure Components & Avoiding Side Effects in Render
- Key & Ref Best Practices
- Folder Structure & Naming Conventions