# Vite + React app

> A React single-page app built with Vite, with client-side routing, served as static files.

A React 19 single-page app built with Vite and TypeScript, with two routes and a fallback so a refresh on any route works. Click Deploy and Naijacloud builds it from the public repo, serves the built files and gives you a live HTTPS address. No GitHub connection needed.

- Use case: Starter
- Stack: Vite, React
- Code: https://github.com/naijacloud/template-vite-react (branch `main`)
- Deploy: https://naijacloud.com/new?template=vite-react&ref=template-vite-react
- Free tier: fits (1 app per workspace)
- Last verified on Naijacloud: 9 Oct 2026
- Page: https://naijacloud.com/templates/vite-react

## What's inside

- React 19, Vite 7 and TypeScript
- Two routes with React Router, falling back to index.html so deep links work
- Builds to dist/ and is served as static files by nginx

## What you get after deploying

- A live address at https://vite-react.naijacloud.app with HTTPS
- Build and runtime logs, metrics and redeploys from the dashboard

## Run it locally

```bash
git clone https://github.com/naijacloud/template-vite-react
cd template-vite-react
npm install
npm run dev
```

Learn how it works: [Static sites](https://naijacloud.com/docs/deploy/static-sites)

All templates: https://naijacloud.com/templates
