Lecture-2 create react Project
Learn how to add code to a GitHub repo from this Git/GitHub tutorial.
Documentation React
React DOM is for websites, while React Native is for app development.
npm - node package manager --> install package to your local machine
npx - node package executor --> install package just for execution
npx create-react-app <name>
It creates a basic React app but is a bulky utility.
entry point --> package.json to read
npm run start
start our react code if package.json file is there
npm run build
To create a build folder for deployment, use the command. This folder will be served to all users.
Vite
It is a bundler.
npm create vite@latest
Above command create a Vite app, select the React framework and choose JavaScript as the variant, then your project will be ready.
cd <app name>
npm install
second command to install required node module in the project
always update Readme file of the project
Subscribe to my newsletter
Read articles from Sabhya Agarwal directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by