Calculator is developed with Vite and React. I built this example to showcase event handlers, and useState.
Client: React,CSS
Build Tool: Vite
Clone the repository
cd react-calculator
npm install
npm run dev
To deploy this project run
npm install gh-pages --save-dev
In the package.json file add these lines before "build": "vite build",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
In the vite.config.js file add this line before plugins: [react()],
base: "/Repository name/",
Go to Terminal
npm run deploy
Other Way by Github Actions
Follow this: https://github.com/sitek94/vite-deploy-demo