Welcome again Developers!!
In last blog we have discussed how to create react environment in your system. Now, we will explore the files downloaded in react app.
- You can see the files image. See my react app name is online assignment.
- Inside the online assignment folder you see many folders.
- node_modules folder will contain all the dependency needed by the react project.
- public folder stores the static files like index.html, images. This folder can be access all over the project.
- src folder stores all the source code file we write like i have made a component like add.js, app.js etc.
- .gitignore stores the file/folder name need to be ignored. I hope you are aware about git and github. Whenever we push file in github we mention the file/folder name in .gitignore which we don't want to push.
- package.json records our project dependencies and project configuration.
- package-lock-json records the exact version of package that we have installed.
NOTE: Whenever we send our project we delete node_module folder because it contain huge files and that will take time. The project receiver
just have to type npm install in terminal to get back node_module. All the dependency get dowloaded in node_modules with the help of package.json[stores the dependency of project].
Keep up the hardwork
ReplyDeleteGood job👍
ReplyDelete