Part 2 React project resources explanation | React setup
Whenever we are creating the react project, the below files will be generated. my-app === project name ├── README.md ├── node_modules ├── package.json ├── .gitignore ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt └── src ├── App.css ├── App.js ├── App.test.js ├── index.css ├── index.js ├── logo.svg ├── serviceWorker.js └── setupTests.js node_module - This folder contains the all libraries required for the project. - This folder is auto-generated. - run the 'npm install' command to generate the node_module folder index.html - React will load the index.html file first. - It will contain the root div tag. manifest.json - The web app manifest provides information about an application (such as name, author, icon, and description) in a JSON text file. The purpose of the manifest is to install web applications to the home screen of a device, providing users with quicker access and a richer experience. robots.txt - Robots.txt file is a text file created by the designer/developer to prevent search engines and bots to crawl their sites. It contains the list of allowed and disallowed sites and whenever a bot wants to access the website, it checks the robots.txt file and accesses only those sites that are allowed. It doesn’t show up the disallowed sites in search results. src - All source code will be placed inside the src folder. .gitignore - Ignore the list of files from git. package.json - It will have a list of library information used in the project. Scripts:- -------- npm start - To start the project. npm test - To test the unit test cases. npm run build - Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.
Download
0 formatsNo download links available.