yarn add install all packages in package,json 1

yarn add install all packages in package,json

yarn add nameOfPackage --dev

Here is what the above code is Doing:
1. It’s creating a new directory called my-app
2. It’s changing the current directory to my-app
3. It’s initializing a new git repository
4. It’s creating a package.json file
5. It’s installing react and react-dom
6. It’s creating a .gitignore file
7. It’s creating a public directory with an index.html file inside
8. It’s creating a src directory with a index.js file inside

Similar Posts