This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Sample from: https://www.youtube.com/watch?v=-weTjP3pYxs
npm create vite@latest
ReactViteOnGithubPages
cd .\ReactViteOnGithubPages\
npm install
git init
git add .
git commit -m "Adding React Vite deploy on Github Pages"
git branch -M main
git remote add origin https://github.com/bitAlison/ReactViteOnGithubPages.git
git push -u origin main
npm i gh-pages