Setup
- Runtime: Node greater than 16
- Check node version
node -v
- Editor: VSCode
- VS Extension prettier
- File > Preference > Settings > Search "format on save" > check it
Create React App
- You can create react application using
- Create React App (CRA)
- Vite: Faster and produces smaller bundle sizes
Using Vite
- Install package
npm create vite@latest
npm create vite@4.1.0
- Specify project name:
react-app
- Select framework :
react
- Select language:
typescript
- Run commands
cd react-app
npm install
or
npm i
code .
- Open VS Terminal
npm run dev