Node Installation
- Choose
LTS
version, since it is always preferred - Restart your PC
GIT Installation
- Choose your installable according to your OS
- Install it
Open command prompt
- Click
Start
button - Type
cmd
- Open
Command Prompt
by clicking on the first option
Verify for node
_1node -v
- This should display the installed version of
node
- If it errors then restart your PC and try again
Setup git
_1git config --global user.name "Github username"
_1git config --global user.email "Github email"
Open cmd in project folder
Create react project with vite
_1npm create vite@latest react-abc-demo -- --template react
_1cd react-abc-demo
_1npm install
To install the node_modules
for the project
_1npm run dev
Goto to http://localhost:5173/ to see your react app
Eslint setup
_1npm install --save-dev eslint-config-react-app eslint@^8.0.0
Create a file named .eslintrc.json
with following contents in the root folder of your project
@ragavkumarv
swipe to next ➡️