Reactjs Installation and Setup
By Saket Bhatnagar••Beginner
reactjs installation and setup
- 1To install React, you need to have Node.js installed on your machine.
- 2Download Node.js from here
- 3Setup React Project using create-react-app tool
Install create-react-app
1npm install -g create-react-app - 4
Setup React Project using create-react-app
1npx create-react-app my-first-app💡Note
This will create a new React project in the my-first-app directory. Start the created project using the command `npm start`
- 5Setup React Project using Vite tool
Install Vite
1npm install -g vite - 6
Setup React Project using Vite
1npx create-vite my-first-app💡Note
This will create a new React project in the my-first-app directory. Start the created project using the command `npm run dev`