Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Understanding the React Project Structure | Running and Exploring a React Project
Introduction to React

bookUnderstanding the React Project Structure

When you create a React project with Vite, it generates a set of files and folders that make up the project structure. At first glance, this structure may look overwhelming, but you don't need to understand everything at once.

Explore what each main folder and file is used for and which parts you'll work with most often.

Project Root Overview

A Vite React project typically contains the following items at the root level:

  • node_modules;
  • public;
  • src;
  • index.html;
  • package.json;
  • package-lock.json;
  • vite.config.js;
  • eslint.config.js;
  • .gitignore;
  • README.md;

Let's break down the most important ones.

question mark

Which folder contains most of your React application code?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 2

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

bookUnderstanding the React Project Structure

Swipe to show menu

When you create a React project with Vite, it generates a set of files and folders that make up the project structure. At first glance, this structure may look overwhelming, but you don't need to understand everything at once.

Explore what each main folder and file is used for and which parts you'll work with most often.

Project Root Overview

A Vite React project typically contains the following items at the root level:

  • node_modules;
  • public;
  • src;
  • index.html;
  • package.json;
  • package-lock.json;
  • vite.config.js;
  • eslint.config.js;
  • .gitignore;
  • README.md;

Let's break down the most important ones.

question mark

Which folder contains most of your React application code?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 2
some-alt