Here's a basic React App to help you build a website quickly
It includes:
- Node 18
- A GitHub account
- Install dependencies
npm i- Run it
npm run dev
- View it in the browser http://localhost:5173/sample-react-app
npm run test- In
vite.config.tsfile add your repository name inbase.
base: '/sample-react-app/',- In
package.jsonedithomepageadding your GitHub username and repository name. - Build your website by running
npm run buildcommand. - Deploy to GitHub pages by running
npm run deploycommand. - Check your website on the url you added in
website. It may take a few minutes to deploy.