-
npx create-react-app "App Name"
Eg: npx create-react-app 01BasicsReact npx -> node package executor create-react-app -> it is a utility which lets us create a react app This method is a bulky method of installation and take time for project setup.
-
Another method is through using Vite We can create a React project using Vite which is bundler
npm create vite@latest -> command to create vite a project
After putting the project name, package name, and selecting the React framework and language to be used, then run "npm install" to install node modules since Vite installation does not automatically install the node modules on its own.