0% found this document useful (0 votes)
51 views1 page

Folder Structure

helped in React Native course in Coursera

Uploaded by

Ankit Karmakar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

Folder Structure

helped in React Native course in Coursera

Uploaded by

Ankit Karmakar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Folder Structure for React Project

In React application, there are several files and folders in the root directory. Some of them
are as follows:

1. node_modules: It contains the React library and any other third party libraries
needed.
2. public: It holds the public assets of the application. It contains the index.html where
React will mount the application by default on the <div id="root"></div> element.
3. src: It contains the App.css, App.js, App.test.js, index.css, index.js, and
serviceWorker.js files. Here, the App.js file always responsible for displaying the
output screen in React.
4. package-lock.json: It is generated automatically for any operations where npm
package modifies either the node_modules tree or package.json. It cannot be
published. It will be ignored if it finds any other place rather than the top-level
package.

The package-lock. json is a lockfile that holds information on the dependencies or


packages installed for a node. js project, including their exact version numbers.

5. package.json: It holds various metadata required for the project. It gives information
to npm, which allows to identify the project as well as handle the project?s
dependencies.
6. README.md: It provides the documentation to read about React topics.

You might also like