Introduction

This is the second article of the basic react js series. In this article, we will understand files and folder structure in react application. When we open the application folder we can see three folders are created node_module, public, and src and four files are created on the root directory.

In this series, we are learning about basic react js concepts. This article is all about the files and folder structure of React application.

File and Folder Structure in React

node_modules

This folder contains all the dependencies packages, which are used in our application.

public

File and Folder Structure in React

src

File and Folder Structure in React

.gitignore

This file tells to git, Which files and folders to ignore for commit in a project like node_module, env, and others.

package-lock.json

This file contains the details history of packages and dependencies on other packages.

package.json

This is the important file for react application. it contains details of the name of the application, dependencies, and version of packages which is used in the application. Also, scripts object commands details to run various commands.

README.md

This file contains the details about the application run command and many other links for documentation.

Summary

In this article, We learned about the files and folder structure of react application. Thank you for reading this article.